ssb-pcicore: Fix IRQ TPS flag handling
authorLarry Finger <larry.finger@lwfinger.net>
Tue, 8 Apr 2008 08:28:24 +0000 (10:28 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 9 Apr 2008 14:33:49 +0000 (10:33 -0400)
This fixes the TPS flag handling for the SSB pcicore driver.
This fixes interrupts on some devices.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/ssb/driver_pcicore.c

index 74b9a8aea52b12bbbf721a9c6f623ac2d09655b3..5d777f211699460085572b991d3e5283314ef2f3 100644 (file)
@@ -551,7 +551,7 @@ int ssb_pcicore_dev_irqvecs_enable(struct ssb_pcicore *pc,
                } else {
                        tmp = ssb_read32(dev, SSB_TPSFLAG);
                        tmp &= SSB_TPSFLAG_BPFLAG;
-                       intvec |= tmp;
+                       intvec |= (1 << tmp);
                }
                ssb_write32(pdev, SSB_INTVEC, intvec);
        }