]> git.baikalelectronics.ru Git - uboot.git/commit
serial: ns16550: Correct the base address type
authorBin Meng <bmeng.cn@gmail.com>
Wed, 3 Feb 2021 13:22:40 +0000 (21:22 +0800)
committerSimon Glass <sjg@chromium.org>
Thu, 4 Mar 2021 02:17:25 +0000 (19:17 -0700)
commitfa3c1886ef72010a3048789bfed17d7e43f542d4
treed96beb59fbb5e659ae33439e89eab2ac76db7d52
parente88b1b8b8f95e511142f6c63facd63fd653bbcdf
serial: ns16550: Correct the base address type

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: ba011a35dddc ("serial: ns16550: Fix ordering of getting base address")
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/serial/ns16550.c