All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] MIPS: Fix console output for Fulong2e system
@ 2015-08-31  4:19 Guenter Roeck
  2015-09-01 14:11   ` Markos Chandras
  0 siblings, 1 reply; 3+ messages in thread
From: Guenter Roeck @ 2015-08-31  4:19 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: Huacai Chen, linux-mips, linux-kernel, Guenter Roeck

Commit 3adeb2566b9b ("MIPS: Loongson: Improve LEFI firmware interface")
made the number of UARTs dynamic if LEFI_FIRMWARE_INTERFACE is configured.
Unfortunately, it did not initialize the number of UARTs if
LEFI_FIRMWARE_INTERFACE is not configured. As a result, the Fulong2e
system has no console.

Fixes: 3adeb2566b9b ("MIPS: Loongson: Improve LEFI firmware interface")
Acked-by: Huacai Chen <chenhc@lemote.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
v2: Changed subject to 'MIPS'
    Added Acked-by:
    Rebased to v4.2 and re-tested with qemu

 arch/mips/loongson64/common/env.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/mips/loongson64/common/env.c b/arch/mips/loongson64/common/env.c
index f6c44dd332e2..d6d07ad56180 100644
--- a/arch/mips/loongson64/common/env.c
+++ b/arch/mips/loongson64/common/env.c
@@ -64,6 +64,9 @@ void __init prom_init_env(void)
 	}
 	if (memsize == 0)
 		memsize = 256;
+
+	loongson_sysconf.nr_uarts = 1;
+
 	pr_info("memsize=%u, highmemsize=%u\n", memsize, highmemsize);
 #else
 	struct boot_params *boot_p;
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-09-01 14:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-31  4:19 [PATCH v2] MIPS: Fix console output for Fulong2e system Guenter Roeck
2015-09-01 14:11 ` Markos Chandras
2015-09-01 14:11   ` Markos Chandras

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.