some more mvswitch fixes:
[openwrt.git] / target / linux / brcm47xx / patches-2.6.25 / 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 Index: wireless-testing/drivers/ssb/driver_pcicore.c
10 ===================================================================
11 --- wireless-testing.orig/drivers/ssb/driver_pcicore.c 2008-06-10 13:58:23.000000000 +0200
12 +++ wireless-testing/drivers/ssb/driver_pcicore.c 2008-07-04 23:16:02.000000000 +0200
13 @@ -537,6 +537,13 @@ int ssb_pcicore_dev_irqvecs_enable(struc
14 int err = 0;
15 u32 tmp;
16
17 + if (dev->bus->bustype != SSB_BUSTYPE_PCI) {
18 + /* This SSB device is not on a PCI host-bus. So the IRQs are
19 + * not routed through the PCI core.
20 + * So we must not enable routing through the PCI core. */
21 + goto out;
22 + }
23 +
24 if (!pdev)
25 goto out;
26 bus = pdev->bus;
This page took 0.084697 seconds and 5 git commands to generate.