Skip to contentSkip to conversation

mips: Fix console output for Fulong2e system

PATCH Superseded Guenter Roeck 2 participants 3 messages Aug 7, 2015 – Aug 22, 2015

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 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")
Cc Huacai Chen <[email protected]>

---
Never mind my earlier e-mail, I figured it out. Should be a candidate for stable (v3.19+, ie v4.1 in practice).

 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
Acked-by on v1 1/1
#1 lore raw

------------------ Original ------------------

From:  "Guenter Roeck"<[email protected]>;
Date:  Fri, Aug 7, 2015 01:57 PM
To:  "Ralf Baechle"<[email protected]>; 

Cc: "Huacai Chen"<[email protected]>; "linux-mips"<[email protected]>; "linux-kernel"<[email protected]>; "Guenter Roeck"<[email protected]>;
Subject: [PATCH] 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")
Cc Huacai Chen <[email protected]>

---
Never mind my earlier e-mail, I figured it out. Should be a candidate for stable (v3.19+, ie v4.1 in practice).

 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���{.n�+�������+%�����ݶ��w��{.n�+����{��G�����{ay�ʇڙ�,j��f���h��������z_�(�階�ݢj"���m������G������?����&���~��iO��z��v�^�m����������?�I�
#2 lore raw
In reply to Guenter Roeck
Quoted 9 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")
Cc Huacai Chen <[email protected]>

Hello Ralf,

please let me know if anything is wrong with this patch.
Should I resend with Huacai Chen's Ack and capital MIPS in the subject line ?

Thanks,
Guenter

Quoted 21 lines

---
Never mind my earlier e-mail, I figured it out. Should be a candidate for stable (v3.19+, ie v4.1 in practice).

 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;