]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sparc: Really fix "console=" for serial consoles.
authorDavid S. Miller <davem@davemloft.net>
Sun, 15 Aug 2010 07:26:14 +0000 (00:26 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 26 Aug 2010 23:45:58 +0000 (16:45 -0700)
commit922ab18b2778c82bc52acd43ab0e41b31847afc3
treea7a1f0a9046bc1e138aeecf1a2b12c3838ac2de4
parentbbb0cf2f72e98162c7387123dd1f26938c8e1183
sparc: Really fix "console=" for serial consoles.

[ Upstream commit 0a492896ac07336c98f37ad7fab4a6387b6ada78 ]

If a video head and keyboard are hooked up, specifying "console=ttyS0"
or similar to use a serial console will not work properly.

The key issue is that we must register all serial console capable
devices with register_console(), otherwise the command line specified
device won't be found.  The sun serial drivers would only register
themselves as console devices if the OpenFirmware specified console
device node matched.  To fix this part we now unconditionally get
the serial console register by setting serial_drv->cons always.

Secondarily we must not add_preferred_console() using the firmware
provided console setting if the user gaven an override on the kernel
command line using "console="  The "primary framebuffer" matching
logic was always triggering o n openfirmware device node match, make
it not when a command line override was given.

Reported-by: Frans Pop <elendil@planet.nl>
Tested-by: Frans Pop <elendil@planet.nl>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/sparc/include/asm/fb.h
drivers/serial/suncore.c