Skip to contentSkip to conversation

MIPS: Fix console output for Fulong2e system

PATCH In review Guenter Roeck 2 participants 2 messages Aug 31, 2015 – Sep 1, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 MIPS: Fix console output for Fulong2e system

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")

---
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(+)
arch/mips/loongson64/common/env.c +3 -0
index f6c44dd332e2..d6d07ad56180 100644
@@ -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;
Signature · 1 line
2.1.4
Tested-by on v2 1/1
#1 lore raw
Quoted 10 lines · 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")

---

Signature · 1 line
markos