Skip to content

Commit d5c3894

Browse files
fugangduangregkh
authored andcommitted
tty: serial: fsl_lpuart: fix the wrong mapbase value
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: 24b1e5f ("tty: serial: lpuart: add imx7ulp support") Reviewed-by: Leonard Crestez <[email protected]> Signed-off-by: Adriana Reus <[email protected]> Signed-off-by: Sherry Sun <[email protected]> Signed-off-by: Andy Duan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 2285c49 commit d5c3894

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/tty/serial/fsl_lpuart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2615,7 +2615,7 @@ static int lpuart_probe(struct platform_device *pdev)
26152615
return PTR_ERR(sport->port.membase);
26162616

26172617
sport->port.membase += sdata->reg_off;
2618-
sport->port.mapbase = res->start;
2618+
sport->port.mapbase = res->start + sdata->reg_off;
26192619
sport->port.dev = &pdev->dev;
26202620
sport->port.type = PORT_LPUART;
26212621
sport->devtype = sdata->devtype;

0 commit comments

Comments
 (0)