tty: serial: qcom_geni_serial: Fix UART hang
authorRyan Case <ryandcase@chromium.org>
Wed, 19 Dec 2018 20:33:53 +0000 (12:33 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Feb 2020 15:38:52 +0000 (16:38 +0100)
commit0a38fd9326fde16597dc7eef274be46bdc8cdcee
tree6b987acd0080303477949ee81e44b2c9d2d71e17
parentfe1cfc645845b854c1b47118517fd440f15fac1c
tty: serial: qcom_geni_serial: Fix UART hang

[ Upstream commit 663abb1a7a7ff8fea9ab0145463de7fcff823755 ]

If a serial console write occured while a UART transmit command was
waiting for a done signal then no further data would be sent until
something new kicked the system into gear. If there is already data
waiting in the circular buffer we must re-enable the tx watermark so we
receive the expected interrupts.

Signed-off-by: Ryan Case <ryandcase@chromium.org>
Reviewed-by: Evan Green <evgreen@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/tty/serial/qcom_geni_serial.c