]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
tty: serial: uartlite: allow 64 bit address
authorLizhi Hou <lizhi.hou@xilinx.com>
Mon, 29 Nov 2021 20:23:02 +0000 (12:23 -0800)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 7 Mar 2022 15:35:37 +0000 (16:35 +0100)
commit4844977e73776da89fb38e2e1bbdee2ad92f313f
tree4760fe4a4c918a7e53ed6ec759b78c15538665fa
parent97256f3c5e08680bd38dbebefa50bcd593bba09b
tty: serial: uartlite: allow 64 bit address

BugLink: https://bugs.launchpad.net/bugs/1960566
[ Upstream commit 3672fb65155530b5eea6225685c75329b6debec3 ]

The base address of uartlite registers could be 64 bit address which is from
device resource. When ulite_probe() calls ulite_assign(), this 64 bit
address is casted to 32-bit. The fix is to replace "u32" type with
"phys_addr_t" type for the base address in ulite_assign() argument list.

Fixes: 8fa7b6100693 ("[POWERPC] Uartlite: Separate the bus binding from the driver proper")
Signed-off-by: Lizhi Hou <lizhi.hou@xilinx.com>
Link: https://lore.kernel.org/r/20211129202302.1319033-1-lizhi.hou@xilinx.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/tty/serial/uartlite.c