tty: serial: fsl_lpuart: disable Rx/Tx DMA in lpuart32_shutdown()
authorSherry Sun <sherry.sun@nxp.com>
Fri, 25 Nov 2022 10:19:52 +0000 (18:19 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2023 14:05:33 +0000 (15:05 +0100)
commit1d4bd0e4ae4ba95892bef919a8d4d3f08f122d7e
treed072386c73bfe2ef5a225cedd5ed0763aead0d62
parente1d91dda0bd1b96c10ea5d85fee94021c70dd55b
tty: serial: fsl_lpuart: disable Rx/Tx DMA in lpuart32_shutdown()

UARTBAUD_RDMAE and UARTBAUD_TDMAE are enabled in lpuart32_startup(), but
lpuart32_shutdown() not disable them, only free the dma ring buffer and
release the dma channels, so here disable the Rx/Tx DMA first in
lpuart32_shutdown().

Fixes: 42b68768e51b ("serial: fsl_lpuart: DMA support for 32-bit variant")
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Link: https://lore.kernel.org/r/20221125101953.18753-3-sherry.sun@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/fsl_lpuart.c