mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] serial: 8250_mid: fix race condition between output flush and termios update
@ 2026-08-28 17:57 Tate Whiteberg
  2026-08-28 17:57 ` [PATCH v2 1/2] serial: 8250: export and rename wait_for_xmitr() Tate Whiteberg
  2026-08-28 17:57 ` [PATCH v2 2/2] serial: 8250_mid: wait for LSR tx empty before setting termios Tate Whiteberg
  0 siblings, 2 replies; 6+ messages in thread
From: Tate Whiteberg @ 2026-08-28 17:57 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Tate Whiteberg, Greg Kroah-Hartman, Jiri Slaby, Andy Shevchenko,
	linux-kernel, linux-serial

Fix a race condition in which setting termios while still transmitting
can corrupt transmission.

Changes in v2:
  Split original patch into two: a prerequisite to to expose
  wait_for_xmitr() and a successor to fix the bug. 

Tate Whiteberg (2):
  serial: 8250: export and rename wait_for_xmitr()
  serial: 8250_mid: wait for LSR tx empty before setting termios

 drivers/tty/serial/8250/8250.h      |  1 +
 drivers/tty/serial/8250/8250_mid.c  |  7 +++++++
 drivers/tty/serial/8250/8250_port.c | 13 +++++++------
 3 files changed, 15 insertions(+), 6 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-08-31  7:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-28 17:57 [PATCH v2 0/2] serial: 8250_mid: fix race condition between output flush and termios update Tate Whiteberg
2026-08-28 17:57 ` [PATCH v2 1/2] serial: 8250: export and rename wait_for_xmitr() Tate Whiteberg
2026-08-31  7:32   ` Andy Shevchenko
2026-08-28 17:57 ` [PATCH v2 2/2] serial: 8250_mid: wait for LSR tx empty before setting termios Tate Whiteberg
2026-08-31  3:07   ` Jiri Slaby
2026-08-31  6:54   ` Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®