[8.09] kernel: refresh patches
[openwrt/svn-archive/archive.git] / target / linux / brcm47xx / patches / 630-ssb-fix-irq-init.patch
1 Subject: [OpenWrt-Devel] [PATCH] ssb-pcicore: Fix IRQ-vector init on embedded devices
2
3 On embedded devices we must not route the interrupts through
4 the PCI core, if our host-bus is not PCI.
5
6 Reported-by: Steve Brown <sbrown@cortland.com>
7 Signed-off-by: Michael Buesch <mb@bu3sch.de>
8
9 --- a/drivers/ssb/driver_pcicore.c
10 +++ b/drivers/ssb/driver_pcicore.c
11 @@ -519,6 +519,13 @@ int ssb_pcicore_dev_irqvecs_enable(struc
12 int err = 0;
13 u32 tmp;
14
15 + if (dev->bus->bustype != SSB_BUSTYPE_PCI) {
16 + /* This SSB device is not on a PCI host-bus. So the IRQs are
17 + * not routed through the PCI core.
18 + * So we must not enable routing through the PCI core. */
19 + goto out;
20 + }
21 +
22 if (!pdev)
23 goto out;
24 bus = pdev->bus;