OSDN Git Service

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>
Thu, 20 Dec 2018 15:26:28 +0000 (16:26 +0100)
commit663abb1a7a7ff8fea9ab0145463de7fcff823755
tree09d4f0cd7a1bb3c26936f2f33e9cdef642379a8c
parent3c66eb4ba18dd1cab0d1bde651cde6d8bdb47696
tty: serial: qcom_geni_serial: Fix UART hang

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>
drivers/tty/serial/qcom_geni_serial.c