Linux Serial subsystem development
 help / color / mirror / Atom feed
* [PATCH v3 0/2] serial: 8250_mid: fix race condition between output flush and termios update
@ 2026-08-31 16:59 Tate Whiteberg
  2026-08-31 16:59 ` [PATCH v3 1/2] serial: 8250: export and rename wait_for_xmitr() Tate Whiteberg
  2026-08-31 16:59 ` [PATCH v3 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-31 16:59 UTC (permalink / raw)
  To: Andy Shevchenko, Jiri Slaby
  Cc: Tate Whiteberg, Greg Kroah-Hartman, Andy Shevchenko, linux-kernel,
	linux-serial

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

Changes in v3:
  1. Patch 2: use scoped_guard(), as suggested by jirislaby@kernel.org
  2. Patch 2: Update Fixes tag, formatting changes as suggested by
     andriy.shevchenko@intel.com

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  | 15 +++++++++++----
 drivers/tty/serial/8250/8250_port.c | 13 +++++++------
 3 files changed, 19 insertions(+), 10 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2026-09-01  9:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-31 16:59 [PATCH v3 0/2] serial: 8250_mid: fix race condition between output flush and termios update Tate Whiteberg
2026-08-31 16:59 ` [PATCH v3 1/2] serial: 8250: export and rename wait_for_xmitr() Tate Whiteberg
2026-08-31 19:23   ` sashiko-bot
2026-08-31 16:59 ` [PATCH v3 2/2] serial: 8250_mid: wait for LSR tx empty before setting termios Tate Whiteberg
2026-08-31 19:35   ` sashiko-bot
2026-09-01  9:04   ` Andy Shevchenko

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