linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] use alternate SPROM offset for 43224
@ 2012-02-14  4:01 Saul St. John
  2012-02-14 10:07 ` Arend Van Spriel
  2012-02-14 13:34 ` Rafał Miłecki
  0 siblings, 2 replies; 14+ messages in thread
From: Saul St. John @ 2012-02-14  4:01 UTC (permalink / raw)
  To: linux-wireless; +Cc: Rafał Miłecki

I don't know if this is correct in the general sense, but the wireless on my
mid-2010 MacBook Pro doesn't work without it.

Signed-off-by: Saul St. John <saul.stjohn@gmail.com>
---
 drivers/bcma/sprom.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/bcma/sprom.c b/drivers/bcma/sprom.c
index 6f230fb..06c87b5 100644
--- a/drivers/bcma/sprom.c
+++ b/drivers/bcma/sprom.c
@@ -228,8 +228,8 @@ int bcma_sprom_get(struct bcma_bus *bus)
 	/* Most cards have SPROM moved by additional offset 0x30 (48 dwords).
 	 * According to brcm80211 this applies to cards with PCIe rev >= 6
 	 * TODO: understand this condition and use it */
-	offset = (bus->chipinfo.id == 0x4331) ? BCMA_CC_SPROM :
-		BCMA_CC_SPROM_PCIE6;
+	offset = (bus->chipinfo.id == 0x4331 || bus->chipinfo.id == 43224) ? 
+ 			BCMA_CC_SPROM : BCMA_CC_SPROM_PCIE6;
 	bcma_sprom_read(bus, offset, sprom);
 
 	if (bus->chipinfo.id == 0x4331)
-- 
1.7.9


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2012-02-20  9:21 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-14  4:01 [RFC] use alternate SPROM offset for 43224 Saul St. John
2012-02-14 10:07 ` Arend Van Spriel
2012-02-14 13:35   ` Rafał Miłecki
2012-02-14 13:34 ` Rafał Miłecki
2012-02-14 16:22   ` Saul St. John
2012-02-14 17:29     ` Rafał Miłecki
2012-02-14 18:33       ` Hauke Mehrtens
2012-02-14 18:52       ` Saul St. John
2012-02-14 20:10         ` Larry Finger
2012-02-14 20:20           ` Hauke Mehrtens
2012-02-14 22:04             ` Larry Finger
2012-02-14 22:39               ` Arend Van Spriel
2012-02-19 15:37                 ` Hauke Mehrtens
2012-02-20  9:20                   ` Arend van Spriel

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).