]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tty: serial: lpuart: only disable CTS instead of overwriting the whole UARTMODIR...
authorSherry Sun <sherry.sun@nxp.com>
Fri, 7 Mar 2025 06:54:46 +0000 (14:54 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Mar 2025 15:09:06 +0000 (08:09 -0700)
commite98ab45ec5182605d2e00114cba3bbf46b0ea27f
tree115b61454f05a4e0049ebc8f36f9023c85a0b7dd
parent3c3cede051cd49d96f52d7ccb115edadf26a9028
tty: serial: lpuart: only disable CTS instead of overwriting the whole UARTMODIR register

No need to overwrite the whole UARTMODIR register before waiting the
transmit engine complete, actually our target here is only to disable
CTS flow control to avoid the dirty data in TX FIFO may block the
transmit engine complete.
Also delete the following duplicate CTS disable configuration.

Fixes: d5a2e0834364 ("tty: serial: lpuart: disable flow control while waiting for the transmit engine to complete")
Cc: stable <stable@kernel.org>
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Link: https://lore.kernel.org/r/20250307065446.1122482-1-sherry.sun@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/fsl_lpuart.c