mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
Revert "serial: core: only stop transmit when HW fifo is empty"
commitc5603e2a62upstream. This reverts commit7bfb915a59. This commit broke pxa and omap-serial, because it inhibited them from calling stop_tx() if their TX FIFOs weren't completely empty. This resulted in these two drivers hanging during transmits because the TX interrupt would stay enabled, and a new TX interrupt would never fire. Cc: stable@vger.kernel.org Fixes:7bfb915a59("serial: core: only stop transmit when HW fifo is empty") Signed-off-by: Doug Brown <doug@schmorgal.com> Link: https://lore.kernel.org/r/20240606195632.173255-2-doug@schmorgal.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
0bc1f7656a
commit
fa42c4ec85
@@ -789,8 +789,7 @@ enum UART_TX_FLAGS {
|
||||
if (pending < WAKEUP_CHARS) { \
|
||||
uart_write_wakeup(__port); \
|
||||
\
|
||||
if (!((flags) & UART_TX_NOSTOP) && pending == 0 && \
|
||||
__port->ops->tx_empty(__port)) \
|
||||
if (!((flags) & UART_TX_NOSTOP) && pending == 0) \
|
||||
__port->ops->stop_tx(__port); \
|
||||
} \
|
||||
\
|
||||
|
||||
Reference in New Issue
Block a user