Skip to contentSkip to conversation

ssb-pcicore: Fix IRQ-vector init on embedded devices

PATCH New Michael Buesch 1 participant 1 message Jul 4, 2008 Sonics silicon backplane driver (ssb)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---

John, If still possible, please queue for 2.6.26.

drivers/ssb/driver_pcicore.c +7 -0
Index: wireless-testing/drivers/ssb/driver_pcicore.c
===================================================================
@@ -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;
Signature · 1 line
Greetings Michael.