From: Fushuai Wang <fushuai.wang@linux.dev>
To: fushuai.wang@linux.dev
Cc: alan@linux.intel.com, andy.shevchenko@gmail.com,
gregkh@linuxfoundation.org, ilpo.jarvinen@linux.intel.com,
jackzxcui1989@163.com, jirislaby@kernel.org, kees@kernel.org,
linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org,
osama.abdelkader@gmail.com, sean@mess.org, wangfushuai@baidu.com
Subject: Re: [PATCH v3] serial: 8250: Clear CON_PRINTBUFFER on port re-registration
Date: Wed, 3 Jun 2026 14:56:42 +0800 [thread overview]
Message-ID: <20260603065642.7575-1-fushuai.wang@linux.dev> (raw)
In-Reply-To: <20260522101042.21976-1-fushuai.wang@linux.dev>
> diff --git a/drivers/tty/serial/8250/8250_core.c b/drivers/tty/serial/8250/8250_core.c
> index a428e88938eb..5419f1d22d47 100644
> --- a/drivers/tty/serial/8250/8250_core.c
> +++ b/drivers/tty/serial/8250/8250_core.c
> @@ -716,8 +716,12 @@ int serial8250_register_8250_port(const struct uart_8250_port *up)
> if (uart->port.type == PORT_8250_CIR)
> return -ENODEV;
>
> - if (uart->port.dev)
> + if (uart->port.dev) {
> + if (uart_console(&uart->port))
> + uart->port.cons->flags &= ~CON_PRINTBUFFER;
> +
> uart_remove_one_port(&serial8250_reg, &uart->port);
> + }
>
> uart->port.ctrl_id = up->port.ctrl_id;
> uart->port.port_id = up->port.port_id;
ping.
--
Regards,
WANG
next prev parent reply other threads:[~2026-06-03 6:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-22 10:10 Fushuai Wang
2026-06-03 6:56 ` Fushuai Wang [this message]
2026-07-20 19:21 ` Anirudh Srinivasan
2026-07-20 20:22 ` Andy Shevchenko
2026-07-21 3:14 ` Fushuai Wang
2026-07-23 21:55 ` Mark Brown
2026-07-29 10:22 ` Mark Brown
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=20260603065642.7575-1-fushuai.wang@linux.dev \
--to=fushuai.wang@linux.dev \
--cc=alan@linux.intel.com \
--cc=andy.shevchenko@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=jackzxcui1989@163.com \
--cc=jirislaby@kernel.org \
--cc=kees@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=osama.abdelkader@gmail.com \
--cc=sean@mess.org \
--cc=wangfushuai@baidu.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
all inboxes | Powered by JetHome®