From aaf2fadb1b08c1127a1405d4e047e49fc4fdb8f4 Mon Sep 17 00:00:00 2001 From: Adriana Reus Date: Tue, 29 May 2018 14:15:54 +0300 Subject: [PATCH] MLK-18137: fsl_lpuart: Fix loopback mode Register offset needs to be applied on mapbase also. dma_tx/rx_request use the physical address of UARTDATA. Register offset is currently only applied to membase (the corresponding virtual addr) but not on mapbase. Reviewed-by: Leonard Crestez Acked-by: Fugang Duan Signed-off-by: Adriana Reus --- drivers/tty/serial/fsl_lpuart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/fsl_lpuart.c b/drivers/tty/serial/fsl_lpuart.c index 3cf799c8e46d..421b0eb5f3e6 100644 --- a/drivers/tty/serial/fsl_lpuart.c +++ b/drivers/tty/serial/fsl_lpuart.c @@ -2419,7 +2419,7 @@ static int lpuart_probe(struct platform_device *pdev) return PTR_ERR(sport->port.membase); sport->port.membase += sdata->reg_off; - sport->port.mapbase = res->start; + sport->port.mapbase = res->start + sdata->reg_off; sport->port.dev = &pdev->dev; sport->port.type = PORT_LPUART; ret = platform_get_irq(pdev, 0);