819-uart-0004-MLK-18137-fsl_lpuart-Fix-loopback-mode.patch 1.1 KB

12345678910111213141516171819202122232425262728
  1. From 392865cdcca83fbc9624725e505feb31dda7e67a Mon Sep 17 00:00:00 2001
  2. From: Andy Duan <[email protected]>
  3. Date: Mon, 28 Jan 2019 14:29:14 +0800
  4. Subject: [PATCH] MLK-18137: fsl_lpuart: Fix loopback mode
  5. Register offset needs to be applied on mapbase also.
  6. dma_tx/rx_request use the physical address of UARTDATA.
  7. Register offset is currently only applied to membase (the
  8. corresponding virtual addr) but not on mapbase.
  9. Reviewed-by: Leonard Crestez <[email protected]>
  10. Acked-by: Fugang Duan <[email protected]>
  11. Signed-off-by: Adriana Reus <[email protected]>
  12. ---
  13. drivers/tty/serial/fsl_lpuart.c | 2 +-
  14. 1 file changed, 1 insertion(+), 1 deletion(-)
  15. --- a/drivers/tty/serial/fsl_lpuart.c
  16. +++ b/drivers/tty/serial/fsl_lpuart.c
  17. @@ -2476,7 +2476,7 @@ static int lpuart_probe(struct platform_
  18. return PTR_ERR(sport->port.membase);
  19. sport->port.membase += sdata->reg_off;
  20. - sport->port.mapbase = res->start;
  21. + sport->port.mapbase = res->start + sdata->reg_off;
  22. sport->port.dev = &pdev->dev;
  23. sport->port.type = PORT_LPUART;
  24. sport->devtype = sdata->devtype;