[PATCH] powerpc: console_initcall ordering issues

STALE7371d

2 messages, 2 authors, 2006-06-10 · open the first message on its own page

[PATCH] powerpc: console_initcall ordering issues

From: Anton Blanchard <hidden>
Date: 2006-06-10 12:16:23

From: Milton Miller <redacted>

The add_preferred_console call in rtas_console.c was not causing the
console to be selected. It turns out that the add_preferred_console
was being called after the hvc_console driver was registered. It only
works when it is called before the console driver is registered.

Reorder hvc_console.o after the hvc_console drivers to allow the selection
during console_initcall processing.

Signed-Off-By: Milton Miller <redacted>
Signed-off-by: Anton Blanchard <redacted>
---

Index: kernel/drivers/char/Makefile
===================================================================
--- kernel.orig/drivers/char/Makefile	2006-06-05 22:49:52.056236490 -0500
+++ kernel/drivers/char/Makefile	2006-06-05 22:50:12.918997949 -0500
@@ -41,9 +41,9 @@ obj-$(CONFIG_N_HDLC)		+= n_hdlc.o
 obj-$(CONFIG_AMIGA_BUILTIN_SERIAL) += amiserial.o
 obj-$(CONFIG_SX)		+= sx.o generic_serial.o
 obj-$(CONFIG_RIO)		+= rio/ generic_serial.o
-obj-$(CONFIG_HVC_DRIVER)	+= hvc_console.o
 obj-$(CONFIG_HVC_CONSOLE)	+= hvc_vio.o hvsi.o
 obj-$(CONFIG_HVC_RTAS)		+= hvc_rtas.o
+obj-$(CONFIG_HVC_DRIVER)	+= hvc_console.o
 obj-$(CONFIG_RAW_DRIVER)	+= raw.o
 obj-$(CONFIG_SGI_SNSC)		+= snsc.o snsc_event.o
 obj-$(CONFIG_MMTIMER)		+= mmtimer.o

Re: [PATCH] powerpc: console_initcall ordering issues

From: Arnd Bergmann <arnd@arndb.de>
Date: 2006-06-10 12:54:10

Am Saturday 10 June 2006 14:16 schrieb Anton Blanchard:
The add_preferred_console call in rtas_console.c was not causing the
console to be selected. It turns out that the add_preferred_console
was being called after the hvc_console driver was registered. It only
works when it is called before the console driver is registered.
Great, thanks for nailing this one down. We've had multiple people trying
without success to figure out why it couldn't automatically find the console.

	Arnd <><
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help