Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1427874 > unrolled thread

[PATCH] tty: serial: 8250: add CON_CONSDEV to flags

Started byMatthew Leach <matthew.leach@codethink.co.uk>
First post2016-06-21 17:30 +0200
Last post2016-06-21 17:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] tty: serial: 8250: add CON_CONSDEV to flags Matthew Leach <matthew.leach@codethink.co.uk> - 2016-06-21 17:30 +0200

#1427874 — [PATCH] tty: serial: 8250: add CON_CONSDEV to flags

FromMatthew Leach <matthew.leach@codethink.co.uk>
Date2016-06-21 17:30 +0200
Subject[PATCH] tty: serial: 8250: add CON_CONSDEV to flags
Message-ID<rMvMK-7AG-19@gated-at.bofh.it>
When using the 8250 as a boot console and the main console results in
messages being printed twice.  The console framework will only
unregister boot consoles if a new console is registered with the
CON_CONSDEV flag set.

Set this flag for the univ8250 console to prevent double-registration.

Signed-off-by: Matthew Leach <matthew.leach@codethink.co.uk>
---
 drivers/tty/serial/8250/8250_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tty/serial/8250/8250_core.c b/drivers/tty/serial/8250/8250_core.c
index 2f4f5ee..7a7453d 100644
--- a/drivers/tty/serial/8250/8250_core.c
+++ b/drivers/tty/serial/8250/8250_core.c
@@ -675,7 +675,7 @@ static struct console univ8250_console = {
 	.device		= uart_console_device,
 	.setup		= univ8250_console_setup,
 	.match		= univ8250_console_match,
-	.flags		= CON_PRINTBUFFER | CON_ANYTIME,
+	.flags		= CON_PRINTBUFFER | CON_ANYTIME | CON_CONSDEV,
 	.index		= -1,
 	.data		= &serial8250_reg,
 };
-- 
2.8.2

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web