linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc: Fix whitespace merge in mpc8641 hpcn device tree
@ 2008-07-31 22:10 Kumar Gala
  2008-07-31 22:18 ` Jon Loeliger
  0 siblings, 1 reply; 5+ messages in thread
From: Kumar Gala @ 2008-07-31 22:10 UTC (permalink / raw)
  To: linuxppc-dev

When we coverted the .dts to v1 we lost a space between the irq
and its polarity/sense information.  This causes a bit of chaos
as the reset of the blob is off by one cell.

This was noticed by booting and getting errors w/ATA due to
lock of interrupts.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
---

in my for-2.6.27 branch

 arch/powerpc/boot/dts/mpc8641_hpcn.dts |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/boot/dts/mpc8641_hpcn.dts b/arch/powerpc/boot/dts/mpc8641_hpcn.dts
index ae08761..d665e76 100644
--- a/arch/powerpc/boot/dts/mpc8641_hpcn.dts
+++ b/arch/powerpc/boot/dts/mpc8641_hpcn.dts
@@ -411,7 +411,7 @@
 			0xe000 0 0 1 &i8259 12 2
 			0xe100 0 0 2 &i8259 9 2
 			0xe200 0 0 3 &i8259 10 2
-			0xe300 0 0 4 &i8259 112
+			0xe300 0 0 4 &i8259 11 2

 			// IDSEL 0x1d  Audio
 			0xe800 0 0 1 &i8259 6 2
-- 
1.5.5.1

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

* Re: [PATCH] powerpc: Fix whitespace merge in mpc8641 hpcn device tree
  2008-07-31 22:10 [PATCH] powerpc: Fix whitespace merge in mpc8641 hpcn device tree Kumar Gala
@ 2008-07-31 22:18 ` Jon Loeliger
  2008-07-31 22:28   ` Kumar Gala
  0 siblings, 1 reply; 5+ messages in thread
From: Jon Loeliger @ 2008-07-31 22:18 UTC (permalink / raw)
  To: Kumar Gala; +Cc: linuxppc-dev

Kumar Gala wrote:
> When we coverted the .dts to v1 we lost a space between the irq
> and its polarity/sense information.  This causes a bit of chaos
> as the reset of the blob is off by one cell.
>
> 
> diff --git a/arch/powerpc/boot/dts/mpc8641_hpcn.dts b/arch/powerpc/boot/dts/mpc8641_hpcn.dts
> index ae08761..d665e76 100644
> --- a/arch/powerpc/boot/dts/mpc8641_hpcn.dts
> +++ b/arch/powerpc/boot/dts/mpc8641_hpcn.dts
> @@ -411,7 +411,7 @@
>  			0xe000 0 0 1 &i8259 12 2
>  			0xe100 0 0 2 &i8259 9 2
>  			0xe200 0 0 3 &i8259 10 2
> -			0xe300 0 0 4 &i8259 112
> +			0xe300 0 0 4 &i8259 11 2
> 

Ouch.  That was probably my typo and fault.

Apologies.

jdl

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

* Re: [PATCH] powerpc: Fix whitespace merge in mpc8641 hpcn device tree
  2008-07-31 22:18 ` Jon Loeliger
@ 2008-07-31 22:28   ` Kumar Gala
  2008-07-31 22:52     ` Scott Wood
  2008-08-01  3:20     ` David Gibson
  0 siblings, 2 replies; 5+ messages in thread
From: Kumar Gala @ 2008-07-31 22:28 UTC (permalink / raw)
  To: Jon Loeliger; +Cc: linuxppc-dev


On Jul 31, 2008, at 5:18 PM, Jon Loeliger wrote:

> Kumar Gala wrote:
>> When we coverted the .dts to v1 we lost a space between the irq
>> and its polarity/sense information.  This causes a bit of chaos
>> as the reset of the blob is off by one cell.
>>
>> diff --git a/arch/powerpc/boot/dts/mpc8641_hpcn.dts b/arch/powerpc/ 
>> boot/dts/mpc8641_hpcn.dts
>> index ae08761..d665e76 100644
>> --- a/arch/powerpc/boot/dts/mpc8641_hpcn.dts
>> +++ b/arch/powerpc/boot/dts/mpc8641_hpcn.dts
>> @@ -411,7 +411,7 @@
>> 			0xe000 0 0 1 &i8259 12 2
>> 			0xe100 0 0 2 &i8259 9 2
>> 			0xe200 0 0 3 &i8259 10 2
>> -			0xe300 0 0 4 &i8259 112
>> +			0xe300 0 0 4 &i8259 11 2
>
> Ouch.  That was probably my typo and fault.
>
> Apologies.

np.  It would be nice to see dtc warn about it, but that would  
probably be a bit difficult.

- k

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

* Re: [PATCH] powerpc: Fix whitespace merge in mpc8641 hpcn device tree
  2008-07-31 22:28   ` Kumar Gala
@ 2008-07-31 22:52     ` Scott Wood
  2008-08-01  3:20     ` David Gibson
  1 sibling, 0 replies; 5+ messages in thread
From: Scott Wood @ 2008-07-31 22:52 UTC (permalink / raw)
  To: Kumar Gala; +Cc: linuxppc-dev

Kumar Gala wrote:
> np.  It would be nice to see dtc warn about it, but that would probably 
> be a bit difficult.

One thing that macros may bring besides clarity and elimination of 
redundancy is the ability to put some semantic checks in the macro 
itself (rather than hardcoding it into dtc).  At the very least, this 
particular bug would show up as the wrong number of arguments to a macro.

-Scott

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

* Re: [PATCH] powerpc: Fix whitespace merge in mpc8641 hpcn device tree
  2008-07-31 22:28   ` Kumar Gala
  2008-07-31 22:52     ` Scott Wood
@ 2008-08-01  3:20     ` David Gibson
  1 sibling, 0 replies; 5+ messages in thread
From: David Gibson @ 2008-08-01  3:20 UTC (permalink / raw)
  To: Kumar Gala; +Cc: linuxppc-dev

On Thu, Jul 31, 2008 at 05:28:09PM -0500, Kumar Gala wrote:
>
> On Jul 31, 2008, at 5:18 PM, Jon Loeliger wrote:
>
>> Kumar Gala wrote:
>>> When we coverted the .dts to v1 we lost a space between the irq
>>> and its polarity/sense information.  This causes a bit of chaos
>>> as the reset of the blob is off by one cell.
>>>
>>> diff --git a/arch/powerpc/boot/dts/mpc8641_hpcn.dts b/arch/powerpc/ 
>>> boot/dts/mpc8641_hpcn.dts
>>> index ae08761..d665e76 100644
>>> --- a/arch/powerpc/boot/dts/mpc8641_hpcn.dts
>>> +++ b/arch/powerpc/boot/dts/mpc8641_hpcn.dts
>>> @@ -411,7 +411,7 @@
>>> 			0xe000 0 0 1 &i8259 12 2
>>> 			0xe100 0 0 2 &i8259 9 2
>>> 			0xe200 0 0 3 &i8259 10 2
>>> -			0xe300 0 0 4 &i8259 112
>>> +			0xe300 0 0 4 &i8259 11 2
>>
>> Ouch.  That was probably my typo and fault.
>>
>> Apologies.
>
> np.  It would be nice to see dtc warn about it, but that would probably 
> be a bit difficult.

It shouldn't be that hard to make a rudimentary interrupt-map checker
that would catch at least an error as basic as this.  Just no-one's
implemented it yet.  Patches welcome ;-)

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

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

end of thread, other threads:[~2008-08-01  3:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-31 22:10 [PATCH] powerpc: Fix whitespace merge in mpc8641 hpcn device tree Kumar Gala
2008-07-31 22:18 ` Jon Loeliger
2008-07-31 22:28   ` Kumar Gala
2008-07-31 22:52     ` Scott Wood
2008-08-01  3:20     ` David Gibson

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