]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tty: serial: fsl_lpuart: flush RX and TX FIFO when lpuart shutdown
authorSherry Sun <sherry.sun@nxp.com>
Tue, 7 Jan 2025 07:48:34 +0000 (15:48 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 7 Jan 2025 10:50:05 +0000 (11:50 +0100)
commitd78a89990986a4d7d34313d3f58f8596b8ae1222
treebcc71c56d284ffa59cd5fd4e7ec0773c687cf83d
parent79d65fda55cf1a6dac96a69913cd2294a3d8948a
tty: serial: fsl_lpuart: flush RX and TX FIFO when lpuart shutdown

Need to flush UART RX and TX FIFO when lpuart is shutting down to make
sure restore a clean data transfer environment.

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