tty: serial: fsl_lpuart: don't enable receiver/transmitter before rx/tx dma ready
authorSherry Sun <sherry.sun@nxp.com>
Mon, 30 Jan 2023 05:41:07 +0000 (13:41 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Jan 2023 09:53:34 +0000 (10:53 +0100)
commit8a79052c329ed7d738411286dba8c5896fa96140
tree67ef9b27621af77ea83d6b464645ddca758e625d
parented0400ad547c0b88d2f06ecf22a089eb2e84c9b7
tty: serial: fsl_lpuart: don't enable receiver/transmitter before rx/tx dma ready

lpuart32_setup_watermark_enable() will configure the UART FIFO and
watermark, also enable the receiver and transmitter, this should be done
after the rx/tx dma steup ready.

Also add lpuart32_hw_disable() to make sure the receiver/transmitter and
interrupts are disabled during the dma steup.

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Link: https://lore.kernel.org/r/20230130054107.9119-1-sherry.sun@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/fsl_lpuart.c