linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ssb-pcicore: Fix IRQ TPS flag handling
@ 2008-04-08  8:28 Michael Buesch
  0 siblings, 0 replies; only message in thread
From: Michael Buesch @ 2008-04-08  8:28 UTC (permalink / raw)
  To: John Linville; +Cc: Larry Finger, bcm43xx-dev, linux-wireless, Stefano Brivio

From: Larry Finger <larry.finger@lwfinger.net>

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>

---

John, this is an important bugfix for 2.6.25.


Index: wireless-testing/drivers/ssb/driver_pcicore.c
===================================================================
--- wireless-testing.orig/drivers/ssb/driver_pcicore.c	2008-04-08 00:39:12.000000000 +0200
+++ wireless-testing/drivers/ssb/driver_pcicore.c	2008-04-08 00:41:11.000000000 +0200
@@ -566,13 +566,13 @@ int ssb_pcicore_dev_irqvecs_enable(struc
 			/* 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 |= tmp;
+			intvec |= (1 << tmp);
 		}
 		ssb_write32(pdev, SSB_INTVEC, intvec);
 	}
 
 	/* Setup PCIcore operation. */
 	if (pc->setup_done)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-04-08  8:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-08  8:28 [PATCH] ssb-pcicore: Fix IRQ TPS flag handling Michael Buesch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).