Skip to contentSkip to conversation

ssb-pcicore: Remove b44 TPS flag workaround

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ssb-pcicore: Remove b44 TPS flag workaround

Now that we fixed the TPS flag assignment in commit JOHN, INSERT COMMIT ID HERE
we don't need the workaround for the bcm44xx chip anymore.

---

John, please apply to 2.6.26.
But please insert the commit ID of
"[PATCH] ssb-pcicore: Fix IRQ TPS flag handling" into the commit text first.

drivers/ssb/driver_pcicore.c +3 -9
Index: wireless-testing/drivers/ssb/driver_pcicore.c
===================================================================
@@ -559,21 +559,15 @@ int ssb_pcicore_dev_irqvecs_enable(struc
 		if (err)
 			goto out;
 	} else {
 		u32 intvec;
 
 		intvec = ssb_read32(pdev, SSB_INTVEC);
-		if ((bus->chip_id & 0xFF00) == 0x4400) {
-			/* Workaround: On the BCM44XX the BPFLAG routing
-			 * bit is wrong. Use a hardcoded constant. */
-			intvec |= 0x00000002;
-		} else {
-			tmp = ssb_read32(dev, SSB_TPSFLAG);
-			tmp &= SSB_TPSFLAG_BPFLAG;
-			intvec |= (1 << tmp);
-		}
+		tmp = ssb_read32(dev, SSB_TPSFLAG);
+		tmp &= SSB_TPSFLAG_BPFLAG;
+		intvec |= (1 << tmp);
 		ssb_write32(pdev, SSB_INTVEC, intvec);
 	}
 
 	/* Setup PCIcore operation. */
 	if (pc->setup_done)
 		goto out;