All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mips: Fix console output for Fulong2e system
@ 2015-08-07  5:57 Guenter Roeck
  2015-08-07  6:12   ` 陈华才
  2015-08-22 21:34 ` Guenter Roeck
  0 siblings, 2 replies; 5+ messages in thread
From: Guenter Roeck @ 2015-08-07  5:57 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")
Cc: Huacai Chen <chenhc@lemote.com>
Signed-off-by: Guenter Roeck <linux@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


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

* Re:[PATCH] mips: Fix console output for Fulong2e system
  2015-08-07  5:57 [PATCH] mips: Fix console output for Fulong2e system Guenter Roeck
  2015-08-07  6:12   ` 陈华才
@ 2015-08-07  6:12   ` 陈华才
  1 sibling, 0 replies; 5+ messages in thread
From: 陈华才 @ 2015-08-07  6:12 UTC (permalink / raw)
  To: Guenter Roeck, Ralf Baechle; +Cc: linux-mips, linux-kernel, Guenter Roeck

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 1696 bytes --]

Acked-by: Huacai Chen <chenhc@lemote.com>
 
------------------ Original ------------------
From:  "Guenter Roeck"<linux@roeck-us.net>;
Date:  Fri, Aug 7, 2015 01:57 PM
To:  "Ralf Baechle"<ralf@linux-mips.org>; 
Cc:  "Huacai Chen"<chenhc@lemote.com>; "linux-mips"<linux-mips@linux-mips.org>; "linux-kernel"<linux-kernel@vger.kernel.org>; "Guenter Roeck"<linux@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 <chenhc@lemote.com>
Signed-off-by: Guenter Roeck <linux@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ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dʇڙë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥

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

* Re:[PATCH] mips: Fix console output for Fulong2e system
@ 2015-08-07  6:12   ` 陈华才
  0 siblings, 0 replies; 5+ messages in thread
From: 陈华才 @ 2015-08-07  6:12 UTC (permalink / raw)
  To: Guenter Roeck, Ralf Baechle; +Cc: linux-mips, linux-kernel, Guenter Roeck

Acked-by: Huacai Chen <chenhc@lemote.com>
 
------------------ Original ------------------
From:  "Guenter Roeck"<linux@roeck-us.net>;
Date:  Fri, Aug 7, 2015 01:57 PM
To:  "Ralf Baechle"<ralf@linux-mips.org>; 
Cc:  "Huacai Chen"<chenhc@lemote.com>; "linux-mips"<linux-mips@linux-mips.org>; "linux-kernel"<linux-kernel@vger.kernel.org>; "Guenter Roeck"<linux@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 <chenhc@lemote.com>
Signed-off-by: Guenter Roeck <linux@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

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

* Re:[PATCH] mips: Fix console output for Fulong2e system
@ 2015-08-07  6:12   ` 陈华才
  0 siblings, 0 replies; 5+ messages in thread
From: 陈华才 @ 2015-08-07  6:12 UTC (permalink / raw)
  To: Guenter Roeck, Ralf Baechle; +Cc: linux-mips, linux-kernel

Acked-by: Huacai Chen <chenhc@lemote.com>
 
------------------ Original ------------------
From:  "Guenter Roeck"<linux@roeck-us.net>;
Date:  Fri, Aug 7, 2015 01:57 PM
To:  "Ralf Baechle"<ralf@linux-mips.org>; 
Cc:  "Huacai Chen"<chenhc@lemote.com>; "linux-mips"<linux-mips@linux-mips.org>; "linux-kernel"<linux-kernel@vger.kernel.org>; "Guenter Roeck"<linux@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 <chenhc@lemote.com>
Signed-off-by: Guenter Roeck <linux@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

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

* Re: mips: Fix console output for Fulong2e system
  2015-08-07  5:57 [PATCH] mips: Fix console output for Fulong2e system Guenter Roeck
  2015-08-07  6:12   ` 陈华才
@ 2015-08-22 21:34 ` Guenter Roeck
  1 sibling, 0 replies; 5+ messages in thread
From: Guenter Roeck @ 2015-08-22 21:34 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: Huacai Chen, linux-mips, linux-kernel

On Thu, Aug 06, 2015 at 10:57:16PM -0700, Guenter Roeck wrote:
> 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 <chenhc@lemote.com>
> Signed-off-by: Guenter Roeck <linux@roeck-us.net>

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

> ---
> 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;

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

end of thread, other threads:[~2015-08-22 21:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-07  5:57 [PATCH] mips: Fix console output for Fulong2e system Guenter Roeck
2015-08-07  6:12 ` 陈华才
2015-08-07  6:12   ` 陈华才
2015-08-07  6:12   ` 陈华才
2015-08-22 21:34 ` Guenter Roeck

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.