]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 15 Oct 2021 09:27:27 +0000 (11:27 +0200)
commit41e7a22b65f51651806a06d7b8d2e66596f20b30
tree34b938910a74741bd6477bd15f2274d738eadf7c
parent446338175fc750dd3019fd7809398ed713131668
tty: serial: fsl_lpuart: fix the wrong mapbase value

BugLink: https://bugs.launchpad.net/bugs/1946788
[ Upstream commit d5c38948448abc2bb6b36dbf85a554bf4748885e ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/tty/serial/fsl_lpuart.c