linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [patch 1/1] ARM: kirkwood: stop printk TCLK value at boot for DT boards
@ 2013-11-05 18:09 Arnaud Patard (Rtp)
  2013-11-08  9:00 ` Sebastian Hesselbarth
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Arnaud Patard (Rtp) @ 2013-11-05 18:09 UTC (permalink / raw)
  To: linux-arm-kernel

Commit 2326f04321a9 (ARM: kirkwood: convert to DT irqchip and clocksource)
dropped the call to kirkwood_timer_init() when booting with DT.
This results in kirkwood_tclk not being set and the boot message is now:

Kirkwood: MV88F6281-A0, TCLK=0

This patch modifies the message for printing only the kirkwood id,
as it allows to detect if we're running A0/A1/... variants with a simple
dmesg.

Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
---

Index: linux-next/arch/arm/mach-kirkwood/board-dt.c
===================================================================
--- linux-next.orig/arch/arm/mach-kirkwood/board-dt.c	2013-11-05 18:36:23.131191305 +0100
+++ linux-next/arch/arm/mach-kirkwood/board-dt.c	2013-11-05 18:36:35.867190745 +0100
@@ -140,7 +140,7 @@ eth_fixup_skip:
 
 static void __init kirkwood_dt_init(void)
 {
-	pr_info("Kirkwood: %s, TCLK=%d.\n", kirkwood_id(), kirkwood_tclk);
+	pr_info("Kirkwood: %s.\n", kirkwood_id());
 
 	/*
 	 * Disable propagation of mbus errors to the CPU local bus,

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

* [patch 1/1] ARM: kirkwood: stop printk TCLK value at boot for DT boards
  2013-11-05 18:09 [patch 1/1] ARM: kirkwood: stop printk TCLK value at boot for DT boards Arnaud Patard (Rtp)
@ 2013-11-08  9:00 ` Sebastian Hesselbarth
  2013-11-08  9:09   ` Andrew Lunn
  2013-11-08  9:29   ` Arnaud Patard (Rtp)
  2013-11-08  9:44 ` Andrew Lunn
  2013-11-24  3:13 ` Jason Cooper
  2 siblings, 2 replies; 7+ messages in thread
From: Sebastian Hesselbarth @ 2013-11-08  9:00 UTC (permalink / raw)
  To: linux-arm-kernel

On 11/05/2013 07:09 PM, Arnaud Patard (Rtp) wrote:
> Commit 2326f04321a9 (ARM: kirkwood: convert to DT irqchip and clocksource)
> dropped the call to kirkwood_timer_init() when booting with DT.
> This results in kirkwood_tclk not being set and the boot message is now:
>
> Kirkwood: MV88F6281-A0, TCLK=0
>
> This patch modifies the message for printing only the kirkwood id,
> as it allows to detect if we're running A0/A1/... variants with a simple
> dmesg.

Arnaud,

for DT based booting we also have the "Machine" printed right above the
"Kirkwood" string. Don't you think, that we can remove the pr_info
completely?

Sebastian

> ---
>
> Index: linux-next/arch/arm/mach-kirkwood/board-dt.c
> ===================================================================
> --- linux-next.orig/arch/arm/mach-kirkwood/board-dt.c	2013-11-05 18:36:23.131191305 +0100
> +++ linux-next/arch/arm/mach-kirkwood/board-dt.c	2013-11-05 18:36:35.867190745 +0100
> @@ -140,7 +140,7 @@ eth_fixup_skip:
>
>   static void __init kirkwood_dt_init(void)
>   {
> -	pr_info("Kirkwood: %s, TCLK=%d.\n", kirkwood_id(), kirkwood_tclk);
> +	pr_info("Kirkwood: %s.\n", kirkwood_id());
>
>   	/*
>   	 * Disable propagation of mbus errors to the CPU local bus,
>
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>

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

* [patch 1/1] ARM: kirkwood: stop printk TCLK value at boot for DT boards
  2013-11-08  9:00 ` Sebastian Hesselbarth
@ 2013-11-08  9:09   ` Andrew Lunn
  2013-11-08  9:29   ` Arnaud Patard (Rtp)
  1 sibling, 0 replies; 7+ messages in thread
From: Andrew Lunn @ 2013-11-08  9:09 UTC (permalink / raw)
  To: linux-arm-kernel

> >Kirkwood: MV88F6281-A0, TCLK=0
> >
> >This patch modifies the message for printing only the kirkwood id,
> >as it allows to detect if we're running A0/A1/... variants with a simple
> >dmesg.
> 
> Arnaud,
> 
> for DT based booting we also have the "Machine" printed right above the
> "Kirkwood" string. Don't you think, that we can remove the pr_info
> completely?

Hi Sebastian

I think it is useful, as a debug tool. What is printed here is probed
from the hardware. We know it is correct. The Machine string is from
DT and somebody could be trying to boot with the wrong DT blob.

   Andrew

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

* [patch 1/1] ARM: kirkwood: stop printk TCLK value at boot for DT boards
  2013-11-08  9:00 ` Sebastian Hesselbarth
  2013-11-08  9:09   ` Andrew Lunn
@ 2013-11-08  9:29   ` Arnaud Patard (Rtp)
  2013-11-08  9:37     ` Sebastian Hesselbarth
  1 sibling, 1 reply; 7+ messages in thread
From: Arnaud Patard (Rtp) @ 2013-11-08  9:29 UTC (permalink / raw)
  To: linux-arm-kernel

Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> writes:

> On 11/05/2013 07:09 PM, Arnaud Patard (Rtp) wrote:
>> Commit 2326f04321a9 (ARM: kirkwood: convert to DT irqchip and clocksource)
>> dropped the call to kirkwood_timer_init() when booting with DT.
>> This results in kirkwood_tclk not being set and the boot message is now:
>>
>> Kirkwood: MV88F6281-A0, TCLK=0
>>
>> This patch modifies the message for printing only the kirkwood id,
>> as it allows to detect if we're running A0/A1/... variants with a simple
>> dmesg.
>
> Arnaud,
>
> for DT based booting we also have the "Machine" printed right above the
> "Kirkwood" string. Don't you think, that we can remove the pr_info
> completely?

The Machine give some valuable information as one can load wrong dtb
(already happened here). Moreover, it's a of thing (see
of_flat_dt_match_machine) so not something that can be decided on
kirkwookd side.
About possible redundancy of informations between the "Kirkwood:" and
the "Machine" lines, the former one gives the stepping. This allows to
know easily if kwboot has a chance to work on the serial port.

Arnaud

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

* [patch 1/1] ARM: kirkwood: stop printk TCLK value at boot for DT boards
  2013-11-08  9:29   ` Arnaud Patard (Rtp)
@ 2013-11-08  9:37     ` Sebastian Hesselbarth
  0 siblings, 0 replies; 7+ messages in thread
From: Sebastian Hesselbarth @ 2013-11-08  9:37 UTC (permalink / raw)
  To: linux-arm-kernel

On 11/08/2013 10:29 AM, Arnaud Patard (Rtp) wrote:
> Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> writes:
>> On 11/05/2013 07:09 PM, Arnaud Patard (Rtp) wrote:
>>> Commit 2326f04321a9 (ARM: kirkwood: convert to DT irqchip and clocksource)
>>> dropped the call to kirkwood_timer_init() when booting with DT.
>>> This results in kirkwood_tclk not being set and the boot message is now:
>>>
>>> Kirkwood: MV88F6281-A0, TCLK=0
>>>
>>> This patch modifies the message for printing only the kirkwood id,
>>> as it allows to detect if we're running A0/A1/... variants with a simple
>>> dmesg.
>>
>> for DT based booting we also have the "Machine" printed right above the
>> "Kirkwood" string. Don't you think, that we can remove the pr_info
>> completely?
>
> The Machine give some valuable information as one can load wrong dtb
> (already happened here). Moreover, it's a of thing (see
> of_flat_dt_match_machine) so not something that can be decided on
> kirkwookd side.
> About possible redundancy of informations between the "Kirkwood:" and
> the "Machine" lines, the former one gives the stepping. This allows to
> know easily if kwboot has a chance to work on the serial port.

Ok, I see there is a use for it. So,

Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>

Sebastian

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

* [patch 1/1] ARM: kirkwood: stop printk TCLK value at boot for DT boards
  2013-11-05 18:09 [patch 1/1] ARM: kirkwood: stop printk TCLK value at boot for DT boards Arnaud Patard (Rtp)
  2013-11-08  9:00 ` Sebastian Hesselbarth
@ 2013-11-08  9:44 ` Andrew Lunn
  2013-11-24  3:13 ` Jason Cooper
  2 siblings, 0 replies; 7+ messages in thread
From: Andrew Lunn @ 2013-11-08  9:44 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Nov 05, 2013 at 07:09:14PM +0100, Arnaud Patard wrote:
> Commit 2326f04321a9 (ARM: kirkwood: convert to DT irqchip and clocksource)
> dropped the call to kirkwood_timer_init() when booting with DT.
> This results in kirkwood_tclk not being set and the boot message is now:
> 
> Kirkwood: MV88F6281-A0, TCLK=0
> 
> This patch modifies the message for printing only the kirkwood id,
> as it allows to detect if we're running A0/A1/... variants with a simple
> dmesg.
> 
> Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>

Acked-by: Andrew Lunn <andrew@lunn.ch>

	  Andrew



> 
> Index: linux-next/arch/arm/mach-kirkwood/board-dt.c
> ===================================================================
> --- linux-next.orig/arch/arm/mach-kirkwood/board-dt.c	2013-11-05 18:36:23.131191305 +0100
> +++ linux-next/arch/arm/mach-kirkwood/board-dt.c	2013-11-05 18:36:35.867190745 +0100
> @@ -140,7 +140,7 @@ eth_fixup_skip:
>  
>  static void __init kirkwood_dt_init(void)
>  {
> -	pr_info("Kirkwood: %s, TCLK=%d.\n", kirkwood_id(), kirkwood_tclk);
> +	pr_info("Kirkwood: %s.\n", kirkwood_id());
>  
>  	/*
>  	 * Disable propagation of mbus errors to the CPU local bus,
> 
> 

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

* [patch 1/1] ARM: kirkwood: stop printk TCLK value at boot for DT boards
  2013-11-05 18:09 [patch 1/1] ARM: kirkwood: stop printk TCLK value at boot for DT boards Arnaud Patard (Rtp)
  2013-11-08  9:00 ` Sebastian Hesselbarth
  2013-11-08  9:44 ` Andrew Lunn
@ 2013-11-24  3:13 ` Jason Cooper
  2 siblings, 0 replies; 7+ messages in thread
From: Jason Cooper @ 2013-11-24  3:13 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Nov 05, 2013 at 07:09:14PM +0100, Arnaud Patard wrote:
> Commit 2326f04321a9 (ARM: kirkwood: convert to DT irqchip and clocksource)
> dropped the call to kirkwood_timer_init() when booting with DT.
> This results in kirkwood_tclk not being set and the boot message is now:
> 
> Kirkwood: MV88F6281-A0, TCLK=0
> 
> This patch modifies the message for printing only the kirkwood id,
> as it allows to detect if we're running A0/A1/... variants with a simple
> dmesg.
> 
> Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
> ---
> 
> Index: linux-next/arch/arm/mach-kirkwood/board-dt.c

Applied to mvebu/soc with Sebastian and Andrew's Acks.

thx,

Jason.

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

end of thread, other threads:[~2013-11-24  3:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-05 18:09 [patch 1/1] ARM: kirkwood: stop printk TCLK value at boot for DT boards Arnaud Patard (Rtp)
2013-11-08  9:00 ` Sebastian Hesselbarth
2013-11-08  9:09   ` Andrew Lunn
2013-11-08  9:29   ` Arnaud Patard (Rtp)
2013-11-08  9:37     ` Sebastian Hesselbarth
2013-11-08  9:44 ` Andrew Lunn
2013-11-24  3:13 ` Jason Cooper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).