[U-Boot] [PATCH 031/080] serial: ns16550: Fix address translation
Simon Glass
sjg at chromium.org
Mon Oct 9 04:48:10 UTC 2017
Hi Mario,
On 29 September 2017 at 06:51, Mario Six <mario.six at gdsys.cc> wrote:
> The dev_read_addr function does not do any bus translations, and just
> returns the raw address read from the device tree, which makes the
> driver not work on systems that need bus translations to get the actual
> memory address of the device's register space.
Aside from any current functionality, what is the correct thing for
dev_read_addr() to do? I worry that the two parts (live/flat tree)
might do different things.
In any case, we should not compound the problem if dev_read_addr() is wrong.
>
> Since the dev_read_addr function is widely used, we refrain from
> modifying it, and instead read the raw address from the device tree, and
> apply the bus translations using the recently introduced
> dev_translate_address function.
>
> Signed-off-by: Mario Six <mario.six at gdsys.cc>
> ---
> drivers/serial/ns16550.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
REgards,
Simon
More information about the U-Boot
mailing list