diff options
author | Jonas Gorski <[email protected]> | 2024-03-03 16:08:07 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2024-03-05 13:37:29 +0000 |
commit | 7bfb915a597a301abb892f620fe5c283a9fdbd77 (patch) | |
tree | ea89f5a9ee6ac60d18ff4cfe62c6cfbf0c371e0d /net/lapb/lapb_out.c | |
parent | d47dd323bf959dbf5f3e7f83373c8ed5f3bec9c0 (diff) |
serial: core: only stop transmit when HW fifo is empty
If the circular buffer is empty, it just means we fit all characters to
send into the HW fifo, but not that the hardware finished transmitting
them.
So if we immediately call stop_tx() after that, this may abort any
pending characters in the HW fifo, and cause dropped characters on the
console.
Fix this by only stopping tx when the tx HW fifo is actually empty.
Fixes: 8275b48b2780 ("tty: serial: introduce transmit helpers")
Cc: [email protected]
Signed-off-by: Jonas Gorski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions