From: Tate Whiteberg <whiteberg@arista.com>
To: Andy Shevchenko <andriy.shevchenko@intel.com>
Cc: Tate Whiteberg <whiteberg@arista.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Jiri Slaby <jirislaby@kernel.org>,
Andy Shevchenko <andy@kernel.org>,
linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org
Subject: [PATCH v2 0/2] serial: 8250_mid: fix race condition between output flush and termios update
Date: Fri, 28 Aug 2026 17:57:26 +0000 [thread overview]
Message-ID: <20260828175733.1650267-1-whiteberg@arista.com> (raw)
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
next reply other threads:[~2026-08-28 17:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-28 17:57 Tate Whiteberg [this message]
2026-08-28 17:57 ` [PATCH v2 1/2] serial: 8250: export and rename wait_for_xmitr() Tate Whiteberg
2026-08-28 18:06 ` sashiko-bot
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-28 18:14 ` sashiko-bot
2026-08-31 3:07 ` Jiri Slaby
2026-08-31 6:54 ` Andy Shevchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260828175733.1650267-1-whiteberg@arista.com \
--to=whiteberg@arista.com \
--cc=andriy.shevchenko@intel.com \
--cc=andy@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=jirislaby@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox