Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9e095a68 authored by Michael Buesch's avatar Michael Buesch Committed by John W. Linville
Browse files

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: default avatarSteve Brown <sbrown@cortland.com>
Signed-off-by: default avatarMichael Buesch <mb@bu3sch.de>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 9dfd5500
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -537,6 +537,13 @@ int ssb_pcicore_dev_irqvecs_enable(struct ssb_pcicore *pc,
	int err = 0;
	int err = 0;
	u32 tmp;
	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)
	if (!pdev)
		goto out;
		goto out;
	bus = pdev->bus;
	bus = pdev->bus;