]> git.ipfire.org Git - thirdparty/kernel/stable.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, 10 Apr 2025 12:39:36 +0000 (14:39 +0200)
commit96fa2608296da9ce5d519d9741ef59e17ceb0e43
tree76fc3f791e4db3ead4a5b487615fa1a809c74d83
parentb09ff334c168e99e09ff86b91a30f5270f87a733
tty: serial: lpuart: only disable CTS instead of overwriting the whole UARTMODIR register

[ Upstream commit e98ab45ec5182605d2e00114cba3bbf46b0ea27f ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/tty/serial/fsl_lpuart.c