diff options
| author | 2026-08-31 16:59:08 +0000 | |
|---|---|---|
| committer | 2026-09-23 14:43:42 +0200 | |
| commit | 1c305d5f1daabd317a60b6a2e2ac6b1aff7e05df (patch) | |
| tree | 01d0295faf4e0f990139698e09c950b8002b675e /scripts/Makefile.thinlto | |
| parent | serial: 8250: export and rename wait_for_xmitr() (diff) | |
serial: 8250_mid: wait for LSR tx empty before setting termios
If mid8250_set_termios is called while data is still in transmission,
the corresponding register updates will corrupt the transmission.
Fix this by locking the port and and waiting for the transmitter to
empty before performing updates. It is necessary to wait for both
UART_LSR_THRE and UART_LSR_TEMT to ensure the final character is sent.
Fixes: f549e94effa1 ("serial: 8250_pci: add Intel Penwell ports")
Signed-off-by: Tate Whiteberg <whiteberg@arista.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Link: https://patch.msgid.link/20260831165911.2029839-3-whiteberg@arista.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
