[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20210819014708.32039-1-sherry.sun@nxp.com>
Date: Thu, 19 Aug 2021 09:47:08 +0800
From: Sherry Sun <sherry.sun@....com>
To: gregkh@...uxfoundation.org, jirislaby@...nel.org
Cc: linux-serial@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-imx@....com
Subject: [PATCH V2] tty: serial: fsl_lpuart: fix the wrong mapbase value
From: Andy Duan <fugang.duan@....com>
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 <leonard.crestez@....com>
Signed-off-by: Adriana Reus <adriana.reus@....com>
Signed-off-by: Sherry Sun <sherry.sun@....com>
Signed-off-by: Andy Duan <fugang.duan@....com>
---
changes in V2:
Add author signed-off-by tag.
---
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->port.dev = &pdev->dev;
sport->port.type = PORT_LPUART;
sport->devtype = sdata->devtype;
--
2.17.1
Powered by blists - more mailing lists