[PATCH] serial: ns16550: Correct the base address type

Bin Meng bmeng.cn at gmail.com
Fri Feb 26 08:31:57 CET 2021


Hi Simon,

On Sun, Feb 7, 2021 at 8:16 AM Simon Glass <sjg at chromium.org> wrote:
>
> On Wed, 3 Feb 2021 at 06:22, Bin Meng <bmeng.cn at gmail.com> wrote:
> >
> > Currently ns16550_serial_assign_base() treats the argument 'base'
> > with type `ulong`. This is incorrect because the base address was
> > obtained from device tree with type `fdt_addr_t` that can represent
> > a physical address larger than 32-bit in a 32-bit system.
> >
> > Fixes: 9e6ce62190b7 ("serial: ns16550: Fix ordering of getting base address")
> > Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
> > ---
> >
> >  drivers/serial/ns16550.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
>
> Reviewed-by: Simon Glass <sjg at chromium.org>
>
> Applied to u-boot-dm, thanks!

It looks like this is still not in u-boot/master yet?

Regards,
Bin


More information about the U-Boot mailing list