Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] ppc64: More U3 device-tree fixes

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@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>

authored by

Benjamin Herrenschmidt and committed by
Paul Mackerras
7d49697e c618cf19

+2 -2
+1 -1
arch/powerpc/kernel/prom_init.c
··· 1872 1872 if (prom_getprop(u3, "device-rev", &u3_rev, sizeof(u3_rev)) 1873 1873 == PROM_ERROR) 1874 1874 return; 1875 - if (u3_rev != 0x35 && u3_rev != 0x37) 1875 + if (u3_rev < 0x35 || u3_rev > 0x39) 1876 1876 return; 1877 1877 /* does it need fixup ? */ 1878 1878 if (prom_getproplen(i2c, "interrupts") > 0)
+1 -1
arch/ppc64/kernel/prom_init.c
··· 1824 1824 if (prom_getprop(u3, "device-rev", &u3_rev, sizeof(u3_rev)) 1825 1825 == PROM_ERROR) 1826 1826 return; 1827 - if (u3_rev != 0x35 && u3_rev != 0x37) 1827 + if (u3_rev < 0x35 || u3_rev > 0x39) 1828 1828 return; 1829 1829 /* does it need fixup ? */ 1830 1830 if (prom_getproplen(i2c, "interrupts") > 0)