2012-04-03 05:06:42 +00:00
|
|
|
From: Ben Hutchings <ben@decadent.org.uk>
|
|
|
|
Subject: Fix console selection in PowerPC LPAR environment
|
|
|
|
Date: Tue, 27 Sep 2011 06:04:39 +0100
|
2012-05-17 01:50:19 +00:00
|
|
|
Bug-Debian: http://bugs.debian.org/492703
|
2012-04-03 05:06:42 +00:00
|
|
|
|
|
|
|
Do not override the preferred console set through the kernel parameter.
|
|
|
|
|
|
|
|
Original version by Bastian Blank <waldi@debian.org>.
|
|
|
|
|
2011-08-09 00:16:15 +00:00
|
|
|
--- a/drivers/tty/hvc/hvc_vio.c
|
|
|
|
+++ b/drivers/tty/hvc/hvc_vio.c
|
2011-09-27 05:04:39 +00:00
|
|
|
@@ -48,6 +48,7 @@
|
|
|
|
#include <asm/firmware.h>
|
|
|
|
#include <asm/hvsi.h>
|
|
|
|
#include <asm/udbg.h>
|
|
|
|
+#include <asm/machdep.h>
|
|
|
|
|
|
|
|
#include "hvc_console.h"
|
|
|
|
|
|
|
|
@@ -446,7 +447,9 @@ void __init hvc_vio_init_early(void)
|
2011-08-09 00:16:15 +00:00
|
|
|
if (hvterm_priv0.proto == HV_PROTOCOL_HVSI)
|
2008-12-28 16:55:48 +00:00
|
|
|
goto out;
|
2011-08-09 00:16:15 +00:00
|
|
|
#endif
|
|
|
|
- add_preferred_console("hvc", 0, NULL);
|
|
|
|
+ /* Check whether the user has requested a different console. */
|
|
|
|
+ if (!strstr(cmd_line, "console="))
|
|
|
|
+ add_preferred_console("hvc", 0, NULL);
|
|
|
|
hvc_instantiate(0, 0, ops);
|
2008-07-28 19:20:10 +00:00
|
|
|
out:
|
|
|
|
of_node_put(stdout_node);
|