Re:[PATCH] mips: Fix console output for Fulong2e system

2015-08-07 Thread 陈华才
Acked-by: Huacai Chen 
 
-- Original --
From:  "Guenter Roeck";
Date:  Fri, Aug 7, 2015 01:57 PM
To:  "Ralf Baechle"; 
Cc:  "Huacai Chen"; "linux-mips"; 
"linux-kernel"; "Guenter 
Roeck"; 
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 
Signed-off-by: Guenter Roeck 
---
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(+)

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

Re:[PATCH] mips: Fix console output for Fulong2e system

2015-08-07 Thread 陈华才
Acked-by: Huacai Chen che...@lemote.com
 
-- Original --
From:  Guenter Roeckli...@roeck-us.net;
Date:  Fri, Aug 7, 2015 01:57 PM
To:  Ralf Baechler...@linux-mips.org; 
Cc:  Huacai Chenche...@lemote.com; linux-mipslinux-m...@linux-mips.org; 
linux-kernellinux-kernel@vger.kernel.org; Guenter 
Roeckli...@roeck-us.net; 
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 che...@lemote.com
Signed-off-by: Guenter Roeck li...@roeck-us.net
---
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(+)

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