Linux Serial subsystem development
 help / color / mirror / Atom feed
* [PATCH] Revert "serial: 8250: Clear CON_PRINTBUFFER on port re-registration"
@ 2026-07-24  7:24 Fushuai Wang
  2026-07-24  8:32 ` John Ogness
  2026-07-24  8:36 ` Greg KH
  0 siblings, 2 replies; 5+ messages in thread
From: Fushuai Wang @ 2026-07-24  7:24 UTC (permalink / raw)
  To: gregkh, jirislaby, john.ogness, osama.abdelkader, jackzxcui1989,
	asrinivasan, andy.shevchenko, broonie
  Cc: linux-kernel, linux-serial, Fushuai Wang

From: Fushuai Wang <wangfushuai@baidu.com>

This reverts commit d338ab1d90603f875c4f7ed223406535378173a5.

This may cause some boot logs to be lost on some platforms.

Reported-by: Mark Brown <broonie@kernel.org>
Reported-by: Anirudh Srinivasan <asrinivasan@oss.tenstorrent.com>
Link: https://lore.kernel.org/all/20260522101042.21976-1-fushuai.wang@linux.dev/
Signed-off-by: Fushuai Wang <wangfushuai@baidu.com>
---
 drivers/tty/serial/8250/8250_core.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/drivers/tty/serial/8250/8250_core.c b/drivers/tty/serial/8250/8250_core.c
index c0e8a4efbdcc..f49862d90eeb 100644
--- a/drivers/tty/serial/8250/8250_core.c
+++ b/drivers/tty/serial/8250/8250_core.c
@@ -720,12 +720,8 @@ int serial8250_register_8250_port(const struct uart_8250_port *up)
 	/* Preserve specified console flow control. */
 	cons_flow = uart_cons_flow_enabled(&uart->port);
 
-	if (uart->port.dev) {
-		if (uart_console(&uart->port))
-			uart->port.cons->flags &= ~CON_PRINTBUFFER;
-
+	if (uart->port.dev)
 		uart_remove_one_port(&serial8250_reg, &uart->port);
-	}
 
 	uart->port.ctrl_id	= up->port.ctrl_id;
 	uart->port.port_id	= up->port.port_id;
-- 
2.36.1


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

* Re: [PATCH] Revert "serial: 8250: Clear CON_PRINTBUFFER on port re-registration"
  2026-07-24  7:24 [PATCH] Revert "serial: 8250: Clear CON_PRINTBUFFER on port re-registration" Fushuai Wang
@ 2026-07-24  8:32 ` John Ogness
  2026-07-24  8:36 ` Greg KH
  1 sibling, 0 replies; 5+ messages in thread
From: John Ogness @ 2026-07-24  8:32 UTC (permalink / raw)
  To: Fushuai Wang, gregkh, jirislaby, osama.abdelkader, jackzxcui1989,
	asrinivasan, andy.shevchenko, broonie
  Cc: linux-kernel, linux-serial, Fushuai Wang

On 2026-07-24, Fushuai Wang <fushuai.wang@linux.dev> wrote:
> From: Fushuai Wang <wangfushuai@baidu.com>
>
> This reverts commit d338ab1d90603f875c4f7ed223406535378173a5.
>
> This may cause some boot logs to be lost on some platforms.
>
> Reported-by: Mark Brown <broonie@kernel.org>
> Reported-by: Anirudh Srinivasan <asrinivasan@oss.tenstorrent.com>
> Link: https://lore.kernel.org/all/20260522101042.21976-1-fushuai.wang@linux.dev/
> Signed-off-by: Fushuai Wang <wangfushuai@baidu.com>

Reviewed-by: John Ogness <john.ogness@linutronix.de>

I also recently stumbled on commmit d338ab1d9060 ("serial: 8250: Clear
CON_PRINTBUFFER on port re-registration") and was surprised to see it
was accepted.

If the double-printing is happening for certain cases with 8250_pnp, I
would expect 8250_pnp (not 8250_core) to detect and handle that
case. 8250_core is the base for a lot of 8250 variants.

John Ogness

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

* Re: [PATCH] Revert "serial: 8250: Clear CON_PRINTBUFFER on port re-registration"
  2026-07-24  7:24 [PATCH] Revert "serial: 8250: Clear CON_PRINTBUFFER on port re-registration" Fushuai Wang
  2026-07-24  8:32 ` John Ogness
@ 2026-07-24  8:36 ` Greg KH
  2026-07-24  9:01   ` John Ogness
  2026-07-24 11:21   ` Mark Brown
  1 sibling, 2 replies; 5+ messages in thread
From: Greg KH @ 2026-07-24  8:36 UTC (permalink / raw)
  To: Fushuai Wang
  Cc: jirislaby, john.ogness, osama.abdelkader, jackzxcui1989,
	asrinivasan, andy.shevchenko, broonie, linux-kernel, linux-serial,
	Fushuai Wang

On Fri, Jul 24, 2026 at 03:24:52PM +0800, Fushuai Wang wrote:
> From: Fushuai Wang <wangfushuai@baidu.com>
> 
> This reverts commit d338ab1d90603f875c4f7ed223406535378173a5.

What tree has this commit?

> This may cause some boot logs to be lost on some platforms.

Can we get some more information than that here?

thanks,

greg k-h

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

* Re: [PATCH] Revert "serial: 8250: Clear CON_PRINTBUFFER on port re-registration"
  2026-07-24  8:36 ` Greg KH
@ 2026-07-24  9:01   ` John Ogness
  2026-07-24 11:21   ` Mark Brown
  1 sibling, 0 replies; 5+ messages in thread
From: John Ogness @ 2026-07-24  9:01 UTC (permalink / raw)
  To: Greg KH, Fushuai Wang
  Cc: jirislaby, osama.abdelkader, jackzxcui1989, asrinivasan,
	andy.shevchenko, broonie, linux-kernel, linux-serial,
	Fushuai Wang

On 2026-07-24, Greg KH <gregkh@linuxfoundation.org> wrote:
> On Fri, Jul 24, 2026 at 03:24:52PM +0800, Fushuai Wang wrote:
>> From: Fushuai Wang <wangfushuai@baidu.com>
>> 
>> This reverts commit d338ab1d90603f875c4f7ed223406535378173a5.
>
> What tree has this commit?

tty/tty-next
tty/tty-testing

John

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

* Re: [PATCH] Revert "serial: 8250: Clear CON_PRINTBUFFER on port re-registration"
  2026-07-24  8:36 ` Greg KH
  2026-07-24  9:01   ` John Ogness
@ 2026-07-24 11:21   ` Mark Brown
  1 sibling, 0 replies; 5+ messages in thread
From: Mark Brown @ 2026-07-24 11:21 UTC (permalink / raw)
  To: Greg KH
  Cc: Fushuai Wang, jirislaby, john.ogness, osama.abdelkader,
	jackzxcui1989, asrinivasan, andy.shevchenko, linux-kernel,
	linux-serial, Fushuai Wang

[-- Attachment #1: Type: text/plain, Size: 386 bytes --]

On Fri, Jul 24, 2026 at 10:36:26AM +0200, Greg KH wrote:
> On Fri, Jul 24, 2026 at 03:24:52PM +0800, Fushuai Wang wrote:

> > This may cause some boot logs to be lost on some platforms.

> Can we get some more information than that here?

I think that's:

  https://lore.kernel.org/r/120da946-505c-4423-a39a-f64f1532a4a7@sirena.org.uk

(causes boot regressions on a range of platforms)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

end of thread, other threads:[~2026-07-24 11:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-24  7:24 [PATCH] Revert "serial: 8250: Clear CON_PRINTBUFFER on port re-registration" Fushuai Wang
2026-07-24  8:32 ` John Ogness
2026-07-24  8:36 ` Greg KH
2026-07-24  9:01   ` John Ogness
2026-07-24 11:21   ` Mark Brown

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