summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorPeter Denison <openwrt@marshadder.org>2008-07-08 17:50:40 +0000
committerPeter Denison <openwrt@marshadder.org>2008-07-08 17:50:40 +0000
commit571e9798293edd87ec852a428dfdde5862b3ba2d (patch)
treea823ac64c09a00ba8c8d21e6edc949e0a9817d06 /target
parent6381e4e679563da253e5036766d1c5655626214e (diff)
downloadmtk-20170518-571e9798293edd87ec852a428dfdde5862b3ba2d.zip
mtk-20170518-571e9798293edd87ec852a428dfdde5862b3ba2d.tar.gz
mtk-20170518-571e9798293edd87ec852a428dfdde5862b3ba2d.tar.bz2
On embedded devices we must not route the interrupts through the PCI core, if our host-bus is not PCI Reported-by: Steve Brown <sbrown@cortland.com> Signed-off-by: Michael Buesch <mb@bu3sch.d>
SVN-Revision: 11750
Diffstat (limited to 'target')
-rw-r--r--target/linux/brcm47xx/patches-2.6.25/630-ssb-fix-irq-init.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/target/linux/brcm47xx/patches-2.6.25/630-ssb-fix-irq-init.patch b/target/linux/brcm47xx/patches-2.6.25/630-ssb-fix-irq-init.patch
new file mode 100644
index 0000000..6dcc34b
--- /dev/null
+++ b/target/linux/brcm47xx/patches-2.6.25/630-ssb-fix-irq-init.patch
@@ -0,0 +1,26 @@
+Subject: [OpenWrt-Devel] [PATCH] ssb-pcicore: Fix IRQ-vector init on embedded devices
+
+On embedded devices we must not route the interrupts through
+the PCI core, if our host-bus is not PCI.
+
+Reported-by: Steve Brown <sbrown@cortland.com>
+Signed-off-by: Michael Buesch <mb@bu3sch.de>
+
+Index: wireless-testing/drivers/ssb/driver_pcicore.c
+===================================================================
+--- wireless-testing.orig/drivers/ssb/driver_pcicore.c 2008-06-10 13:58:23.000000000 +0200
++++ wireless-testing/drivers/ssb/driver_pcicore.c 2008-07-04 23:16:02.000000000 +0200
+@@ -537,6 +537,13 @@ int ssb_pcicore_dev_irqvecs_enable(struc
+ int err = 0;
+ u32 tmp;
+
++ if (dev->bus->bustype != SSB_BUSTYPE_PCI) {
++ /* This SSB device is not on a PCI host-bus. So the IRQs are
++ * not routed through the PCI core.
++ * So we must not enable routing through the PCI core. */
++ goto out;
++ }
++
+ if (!pdev)
+ goto out;
+ bus = pdev->bus;