[PATCH] Revert "of: Fix premature bootconsole disable with 'stdout-path'"

Subsystems: open firmware and flattened device tree, the rest

STALE4210d

3 messages, 3 authors, 2015-03-18 · open the first message on its own page

[PATCH] Revert "of: Fix premature bootconsole disable with 'stdout-path'"

From: Peter Hurley <hidden>
Date: 2015-03-17 20:46:57

This reverts commit 2fa645cb2703d9b3786d850db815414dfeefa51d.

The assumption that at least 1 preferred console will be registered
when the stdout-path property is set is invalid, which can result
in _no_ consoles.

Signed-off-by: Peter Hurley <redacted>
---
 drivers/of/base.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/of/base.c b/drivers/of/base.c
index adb8764..8b904e5 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -1893,10 +1893,8 @@ void of_alias_scan(void * (*dt_alloc)(u64 size, u64 align))
 			name = of_get_property(of_chosen, "linux,stdout-path", NULL);
 		if (IS_ENABLED(CONFIG_PPC) && !name)
 			name = of_get_property(of_aliases, "stdout", NULL);
-		if (name) {
+		if (name)
 			of_stdout = of_find_node_opts_by_path(name, &of_stdout_options);
-			add_preferred_console("stdout-path", 0, NULL);
-		}
 	}
 
 	if (!of_aliases)
-- 
2.3.3

Re: [PATCH] Revert "of: Fix premature bootconsole disable with 'stdout-path'"

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2015-03-18 04:47:38

On Tue, 2015-03-17 at 16:46 -0400, Peter Hurley wrote:
This reverts commit 2fa645cb2703d9b3786d850db815414dfeefa51d.

The assumption that at least 1 preferred console will be registered
when the stdout-path property is set is invalid, which can result
in _no_ consoles.

Signed-off-by: Peter Hurley <redacted>
Grant/Rob, in case you didn't see it, this has caused a panic on at least one
powerpc box. So would be nice if it could go in for 4.0.

cheers

Re: [PATCH] Revert "of: Fix premature bootconsole disable with 'stdout-path'"

From: Rob Herring <robh@kernel.org>
Date: 2015-03-18 13:06:26

On Tue, Mar 17, 2015 at 11:47 PM, Michael Ellerman [off-list ref] wrote:
On Tue, 2015-03-17 at 16:46 -0400, Peter Hurley wrote:
quoted
This reverts commit 2fa645cb2703d9b3786d850db815414dfeefa51d.

The assumption that at least 1 preferred console will be registered
when the stdout-path property is set is invalid, which can result
in _no_ consoles.

Signed-off-by: Peter Hurley <redacted>
Grant/Rob, in case you didn't see it, this has caused a panic on at least one
powerpc box. So would be nice if it could go in for 4.0.
Yes, I'm well aware of it and it will go in this week.

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