]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
tty: serial: fsl_lpuart: fix the wrong mapbase value
authorAndy Duan <fugang.duan@nxp.com>
Thu, 19 Aug 2021 02:10:33 +0000 (10:10 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Aug 2021 12:49:03 +0000 (14:49 +0200)
commitd5c38948448abc2bb6b36dbf85a554bf4748885e
treec3d5e00a363e8e91dba55d7563bf33b96832910a
parent2285c496392979c9ac9d84e19a313ee9212d9b62
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: 24b1e5f0e83c ("tty: serial: lpuart: add imx7ulp support")
Reviewed-by: Leonard Crestez <leonard.crestez@nxp.com>
Signed-off-by: Adriana Reus <adriana.reus@nxp.com>
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Signed-off-by: Andy Duan <fugang.duan@nxp.com>
Link: https://lore.kernel.org/r/20210819021033.32606-1-sherry.sun@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/fsl_lpuart.c