linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 01/11] Set udbg_console index to 0
@ 2008-04-18  7:54 Michael Ellerman
  2008-04-18  7:54 ` [PATCH 02/11] Add udbg_console_anytime() which sets udbg console to CON_ANYTIME Michael Ellerman
                   ` (9 more replies)
  0 siblings, 10 replies; 15+ messages in thread
From: Michael Ellerman @ 2008-04-18  7:54 UTC (permalink / raw)
  To: linuxppc-dev

Because the udbg_console has CON_ENABLED set, it's possible that when we
register it with the console code the index won't be set. This leads to
slightly confusing boot messages like:

[    0.000000] console [udbg-1] enabled

We could remove CON_ENABLED, but we don't want to do that, we always
want the udbg console to be activated, even if the user specified some
other console on the command line.

The simplest fix seems to be just to set the index to 0 by hand. There
is no issue with duplicate udbg consoles, as we guard against registering
multiple times in register_early_udbg_console().

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
---
 arch/powerpc/kernel/udbg.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/kernel/udbg.c b/arch/powerpc/kernel/udbg.c
index 7aad620..9ac5f3a 100644
--- a/arch/powerpc/kernel/udbg.c
+++ b/arch/powerpc/kernel/udbg.c
@@ -155,7 +155,7 @@ static struct console udbg_console = {
 	.name	= "udbg",
 	.write	= udbg_console_write,
 	.flags	= CON_PRINTBUFFER | CON_ENABLED | CON_BOOT,
-	.index	= -1,
+	.index	= 0,
 };
 
 static int early_console_initialized;
-- 
1.5.5

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

end of thread, other threads:[~2008-04-23  5:45 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-18  7:54 [PATCH 01/11] Set udbg_console index to 0 Michael Ellerman
2008-04-18  7:54 ` [PATCH 02/11] Add udbg_console_anytime() which sets udbg console to CON_ANYTIME Michael Ellerman
2008-04-18  8:20   ` Benjamin Herrenschmidt
2008-04-23  5:43     ` Michael Ellerman
2008-04-18  7:54 ` [PATCH 03/11] Register udbg console early on pseries LPAR Michael Ellerman
2008-04-18  7:54 ` [PATCH 04/11] Convert from DBG() to pr_debug() in platforms/pseries/setup.c Michael Ellerman
2008-04-22 13:31   ` Olof Johansson
2008-04-23  5:45     ` Michael Ellerman
2008-04-18  7:54 ` [PATCH 05/11] Convert from DBG() to pr_debug() in platforms/pseries/smp.c Michael Ellerman
2008-04-18  7:54 ` [PATCH 06/11] Convert from DBG() to pr_debug() in platforms/pseries/firmware.c Michael Ellerman
2008-04-18  7:54 ` [PATCH 07/11] Convert from DBG() to pr_debug() in platforms/pseries/iommu.c Michael Ellerman
2008-04-18  7:54 ` [PATCH 08/11] Convert from DBG() to pr_debug() in platforms/pseries/lpar.c Michael Ellerman
2008-04-18  7:54 ` [PATCH 09/11] Convert from DEBUG() to pr_debug() in platforms/pseries/rtasd.c Michael Ellerman
2008-04-18  7:54 ` [PATCH 10/11] Convert from DEBUG() to pr_debug() in platforms/pseries/scanlog.c Michael Ellerman
2008-04-18  7:54 ` [PATCH 11/11] Add CONFIG_PPC_PSERIES_DEBUG to enable debugging for platforms/pseries Michael Ellerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).