Skip to content

Commit 8409d23

Browse files
Lizhi Hougregkh
authored andcommitted
tty: serial: uartlite: allow 64 bit address
[ Upstream commit 3672fb6 ] 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: 8fa7b61 ("[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>
1 parent a001a15 commit 8409d23

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/tty/serial/uartlite.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ static struct uart_driver ulite_uart_driver = {
615615
*
616616
* Returns: 0 on success, <0 otherwise
617617
*/
618-
static int ulite_assign(struct device *dev, int id, u32 base, int irq,
618+
static int ulite_assign(struct device *dev, int id, phys_addr_t base, int irq,
619619
struct uartlite_data *pdata)
620620
{
621621
struct uart_port *port;

0 commit comments

Comments
 (0)