LKML Archive on
help / color / mirror / Atom feed
* [PATCH V3] tty: serial: fsl_lpuart: fix the wrong mapbase value
@ 2021-08-19  2:10 Sherry Sun
  0 siblings, 0 replies; only message in thread
From: Sherry Sun @ 2021-08-19  2:10 UTC (permalink / raw)
  To: gregkh, jirislaby; +Cc: linux-serial, linux-kernel, linux-imx, festevam

From: Andy Duan <>

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.

Fixes: 24b1e5f0e83c ("tty: serial: lpuart: add imx7ulp support")
Reviewed-by: Leonard Crestez <>
Signed-off-by: Adriana Reus <>
Signed-off-by: Sherry Sun <>
Signed-off-by: Andy Duan <>
changes in V3:
  Add the Fixes tag suggested by Fabio.
changes in V2:
  Add author signed-off-by tag suggested by Greg.
 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 31d715c4787a..117e011aff5f 100644
--- a/drivers/tty/serial/fsl_lpuart.c
+++ b/drivers/tty/serial/fsl_lpuart.c
@@ -2615,7 +2615,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-> = &pdev->dev;
 	sport->port.type = PORT_LPUART;
 	sport->devtype = sdata->devtype;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-19  2:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-19  2:10 [PATCH V3] tty: serial: fsl_lpuart: fix the wrong mapbase value Sherry Sun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).