]> Git Repo - linux.git/commit
serial_core: Fix conditional start_tx on ring buffer not empty
authorSeth Bollinger <[email protected]>
Tue, 25 Mar 2014 17:55:37 +0000 (12:55 -0500)
committerGreg Kroah-Hartman <[email protected]>
Wed, 16 Apr 2014 21:17:43 +0000 (14:17 -0700)
commit717f3bbab3c7628736ef738fdbf3d9a28578c26c
tree3cacb3b09404f9717efe37ba43267655d9a3809b
parent4ea8dafd2475e26b3cee3836bc6e6fddbdfb2721
serial_core: Fix conditional start_tx on ring buffer not empty

If the serial_core ring buffer empties just as the tty layer receives
an XOFF, then start_tx will never be called when the tty layer
receives an XON as the serial_core ring buffer is empty.  This will
possibly leave a few bytes trapped in the fifo for drivers that
disable the transmitter when flow controlled.

Signed-off-by: Seth Bollinger <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/tty/serial/serial_core.c
This page took 0.054392 seconds and 4 git commands to generate.