aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/hvc
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2013-09-01 12:24:16 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-09-26 18:56:15 -0400
commit1926d0aeecf0280c67bf7464b2d68fe4e92c566b (patch)
treef2a747640f8ed7861357117e830c7f8616f5add0 /drivers/tty/hvc
parent216fce2e78acd6558b6c16b28295ed7a639dd2c9 (diff)
hvc_vio: Do not override preferred console set by kernel parameter
The original version of this was done by Bastian Blank, who wrote: > The problem is the following: > - Architecture specific code sets preferred console to something bogus. > - Command line handling tries to set preferred console but is overruled > by the old setting. > > The udbg0 console is a boot console and independant. References: http://bugs.debian.org/492703 Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/hvc')
-rw-r--r--drivers/tty/hvc/hvc_vio.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/tty/hvc/hvc_vio.c b/drivers/tty/hvc/hvc_vio.c
index c791b18cdd08..b594abfbf21e 100644
--- a/drivers/tty/hvc/hvc_vio.c
+++ b/drivers/tty/hvc/hvc_vio.c
@@ -48,6 +48,7 @@
48#include <asm/prom.h> 48#include <asm/prom.h>
49#include <asm/hvsi.h> 49#include <asm/hvsi.h>
50#include <asm/udbg.h> 50#include <asm/udbg.h>
51#include <asm/machdep.h>
51 52
52#include "hvc_console.h" 53#include "hvc_console.h"
53 54
@@ -457,7 +458,9 @@ void __init hvc_vio_init_early(void)
457 if (hvterm_priv0.proto == HV_PROTOCOL_HVSI) 458 if (hvterm_priv0.proto == HV_PROTOCOL_HVSI)
458 goto out; 459 goto out;
459#endif 460#endif
460 add_preferred_console("hvc", 0, NULL); 461 /* Check whether the user has requested a different console. */
462 if (!strstr(cmd_line, "console="))
463 add_preferred_console("hvc", 0, NULL);
461 hvc_instantiate(0, 0, ops); 464 hvc_instantiate(0, 0, ops);
462out: 465out:
463 of_node_put(stdout_node); 466 of_node_put(stdout_node);