[PATCH] ppc64: More U3 device-tree fixes

Benjamin Herrenschmidt benh at kernel.crashing.org
Mon Nov 7 14:36:21 EST 2005


Some more U3 revisions have the missing "interrupts" property in U3,
this adds them to the fixup code in prom_init.c

Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>

Index: linux-work/arch/powerpc/kernel/prom_init.c
===================================================================
--- linux-work.orig/arch/powerpc/kernel/prom_init.c	2005-11-07 14:21:10.000000000 +1100
+++ linux-work/arch/powerpc/kernel/prom_init.c	2005-11-07 14:36:13.000000000 +1100
@@ -1872,7 +1872,7 @@
 	if (prom_getprop(u3, "device-rev", &u3_rev, sizeof(u3_rev))
 	    == PROM_ERROR)
 		return;
-	if (u3_rev != 0x35 && u3_rev != 0x37)
+	if (u3_rev < 0x35 || u3_rev > 0x39)
 		return;
 	/* does it need fixup ? */
 	if (prom_getproplen(i2c, "interrupts") > 0)
Index: linux-work/arch/ppc64/kernel/prom_init.c
===================================================================
--- linux-work.orig/arch/ppc64/kernel/prom_init.c	2005-11-07 10:31:39.000000000 +1100
+++ linux-work/arch/ppc64/kernel/prom_init.c	2005-11-07 14:36:17.000000000 +1100
@@ -1825,7 +1825,7 @@
 	if (prom_getprop(u3, "device-rev", &u3_rev, sizeof(u3_rev))
 	    == PROM_ERROR)
 		return;
-	if (u3_rev != 0x35 && u3_rev != 0x37)
+	if (u3_rev < 0x35 || u3_rev > 0x39)
 		return;
 	/* does it need fixup ? */
 	if (prom_getproplen(i2c, "interrupts") > 0)





More information about the Linuxppc64-dev mailing list