From: John Ogness <john.ogness@linutronix.de>
To: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
Jiri Slaby <jirislaby@kernel.org>
Cc: "Andy Shevchenko" <andy.shevchenko@gmail.com>,
linux-kernel@vger.kernel.org,
"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
"Osama Abdelkader" <osama.abdelkader@gmail.com>,
"Kees Cook" <kees@kernel.org>, "Ingo Molnar" <mingo@kernel.org>,
linux-serial@vger.kernel.org
Subject: [PATCH tty v4 4/6] serial: 8250: Set cons_flow on port registration
Date: Wed, 6 May 2026 14:21:59 +0206 [thread overview]
Message-ID: <20260506121606.5805-5-john.ogness@linutronix.de> (raw)
In-Reply-To: <20260506121606.5805-1-john.ogness@linutronix.de>
Since console flow control policy is no longer part of uart_port.flags,
explicitly set the policy for the port.
Signed-off-by: John Ogness <john.ogness@linutronix.de>
---
drivers/tty/serial/8250/8250_core.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/tty/serial/8250/8250_core.c b/drivers/tty/serial/8250/8250_core.c
index a428e88938eb7..b0275204e1167 100644
--- a/drivers/tty/serial/8250/8250_core.c
+++ b/drivers/tty/serial/8250/8250_core.c
@@ -746,6 +746,8 @@ int serial8250_register_8250_port(const struct uart_8250_port *up)
uart->lsr_save_mask = up->lsr_save_mask;
uart->dma = up->dma;
+ uart_set_cons_flow_enabled(&uart->port, uart_cons_flow_enabled(&up->port));
+
/* Take tx_loadsz from fifosize if it wasn't set separately */
if (uart->port.fifosize && !uart->tx_loadsz)
uart->tx_loadsz = uart->port.fifosize;
--
2.47.3
next prev parent reply other threads:[~2026-05-06 12:16 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-06 12:15 [PATCH tty v4 0/6] 8250: Add console flow control John Ogness
2026-05-06 12:15 ` [PATCH tty v4 1/6] serial: core: Add dedicated uart_port field for console flow John Ogness
2026-05-06 12:15 ` [PATCH tty v4 2/6] serial: Replace driver usage of UPF_CONS_FLOW John Ogness
2026-05-07 9:50 ` John Ogness
2026-05-06 12:15 ` [PATCH tty v4 3/6] serial: sh-sci: Avoid deprecated UPF_CONS_FLOW John Ogness
2026-05-06 12:39 ` Geert Uytterhoeven
2026-05-06 12:50 ` Geert Uytterhoeven
2026-05-06 12:53 ` John Ogness
2026-05-11 15:00 ` Greg Kroah-Hartman
2026-05-06 12:15 ` John Ogness [this message]
2026-05-06 12:16 ` [PATCH tty v4 5/6] serial: 8250: Check LSR timeout on console flow control John Ogness
2026-05-06 12:16 ` [PATCH tty v4 6/6] serial: 8250: Add support for " John Ogness
2026-05-11 14:58 ` [PATCH tty v4 0/6] 8250: Add " Greg Kroah-Hartman
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=20260506121606.5805-5-john.ogness@linutronix.de \
--to=john.ogness@linutronix.de \
--cc=andy.shevchenko@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=jirislaby@kernel.org \
--cc=kees@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=osama.abdelkader@gmail.com \
/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