PPC405GP Walnut irq patch

5 messages, 3 authors, 2007-11-01 · open the first message on its own page

PPC405GP Walnut irq patch

From: Steven A. Falco <hidden>
Date: 2007-10-30 21:24:03

Hi - I have found a bug in the ARCH=powerpc Walnut BSP.  The order of 
the ethernet interrupts in the walnut.dts file doesn't match the 
documentation.  I discovered this when porting the BSP to a custom board 
- the ethernet would not work.  The attached patch corrects that.

This is the first patch I am submitting, so please advise me if there is 
anything I should do differently.

Signed-off-by: Steve Falco <sfalco at harris.com>

Re: PPC405GP Walnut irq patch

From: Steven A. Falco <hidden>
Date: 2007-10-30 21:41:30

I realized that I should have done this from the root level.  So here is 
the corrected patch.

Signed-off-by: Steve Falco <sfalco at harris.com>


Steven A. Falco wrote:
Hi - I have found a bug in the ARCH=powerpc Walnut BSP.  The order of 
the ethernet interrupts in the walnut.dts file doesn't match the 
documentation.  I discovered this when porting the BSP to a custom 
board - the ethernet would not work.  The attached patch corrects that.

This is the first patch I am submitting, so please advise me if there 
is anything I should do differently.

Signed-off-by: Steve Falco <sfalco at harris.com>

Re: PPC405GP Walnut irq patch

From: Josh Boyer <hidden>
Date: 2007-10-31 01:40:24

On Tue, 30 Oct 2007 17:41:27 -0400
"Steven A. Falco" [off-list ref] wrote:
quoted hunk
From: "Steven A. Falco" <redacted>
To: linuxppc-dev@ozlabs.org
Subject: Re: PPC405GP Walnut irq patch
Date: Tue, 30 Oct 2007 17:41:27 -0400
Sender: linuxppc-dev-bounces+jwboyer=gmail.com@ozlabs.org
User-Agent: Thunderbird 2.0.0.5 (X11/20070719)

I realized that I should have done this from the root level.  So here is 
the corrected patch.

Signed-off-by: Steve Falco <sfalco at harris.com>


Steven A. Falco wrote:
quoted
Hi - I have found a bug in the ARCH=powerpc Walnut BSP.  The order of 
the ethernet interrupts in the walnut.dts file doesn't match the 
documentation.  I discovered this when porting the BSP to a custom 
board - the ethernet would not work.  The attached patch corrects that.

This is the first patch I am submitting, so please advise me if there 
is anything I should do differently.

Signed-off-by: Steve Falco <sfalco at harris.com>

 
diff --git a/arch/powerpc/boot/dts/walnut.dts b/arch/powerpc/boot/dts/walnut.dts
index 27bef06..dd65115 100644
--- a/arch/powerpc/boot/dts/walnut.dts
+++ b/arch/powerpc/boot/dts/walnut.dts
@@ -67,7 +67,7 @@
 			num-tx-chans = <2>;
 			num-rx-chans = <1>;
 			interrupt-parent = <&UIC0>;
-			interrupts = <a 4 b 4 c 4 d 4 e 4>;
+			interrupts = <b 4 c 4 a 4 d 4 e 4>;
 		};
I fixed this part already.  Seems your tree is slightly old.
quoted hunk
 
 		POB0: opb {
@@ -117,7 +117,7 @@
 				device_type = "network";
 				compatible = "ibm,emac-405gp", "ibm,emac";
 				interrupt-parent = <&UIC0>;
-				interrupts = <9 4 f 4>;
+				interrupts = <f 4 9 4>;
Could you redo the patch with just this bit and send it again?

josh

Re: PPC405GP Walnut irq patch

From: Steven A. Falco <hidden>
Date: 2007-10-31 17:52:57

Could you redo the patch with just this bit and send it again?

josh
  
Ok - this one is based off the Linus tree, and follows your style of one 
interrupt per line, with a comment indicating which one it is.

Signed-off-by: Steve Falco <sfalco at harris.com>

Re: PPC405GP Walnut irq patch

From: Josh Boyer <hidden>
Date: 2007-11-01 12:23:51

On Wed, 31 Oct 2007 13:52:53 -0400
"Steven A. Falco" [off-list ref] wrote:
quoted
Could you redo the patch with just this bit and send it again?

josh
    
Ok - this one is based off the Linus tree, and follows your style of one 
interrupt per line, with a comment indicating which one it is.
Looks good.  Thanks!

josh
quoted hunk
Signed-off-by: Steve Falco <sfalco at harris.com>


diff --git a/arch/powerpc/boot/dts/walnut.dts b/arch/powerpc/boot/dts/walnut.dts
index fa681f5..754fa39 100644
--- a/arch/powerpc/boot/dts/walnut.dts
+++ b/arch/powerpc/boot/dts/walnut.dts
@@ -122,7 +122,9 @@
 				device_type = "network";
 				compatible = "ibm,emac-405gp", "ibm,emac";
 				interrupt-parent = <&UIC0>;
-				interrupts = <9 4 f 4>;
+				interrupts = <
+					f 4 /* Ethernet */
+					9 4 /* Ethernet Wake Up */>;
 				local-mac-address = [000000000000]; /* Filled in by zImage */
 				reg = <ef600800 70>;
 				mal-device = <&MAL>;
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help