Skip to content

Commit

Permalink
b43: implement timeouts workaround
Browse files Browse the repository at this point in the history
Documented in: <4DCA7E40.9070709@lwfinger.net>

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Rafał Miłecki authored and John W. Linville committed May 11, 2011
1 parent 8576f81 commit 0fd82ea
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion drivers/net/wireless/b43/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4221,7 +4221,18 @@ static void b43_bluetooth_coext_disable(struct b43_wldev *dev)

static void b43_imcfglo_timeouts_workaround(struct b43_wldev *dev)
{
/* TODO: implement 80211 core workaround here */
struct ssb_bus *bus = dev->dev->bus;
u32 tmp;

if ((bus->chip_id == 0x4311 && bus->chip_rev == 2) ||
(bus->chip_id == 0x4312)) {
tmp = ssb_read32(dev->dev, SSB_IMCFGLO);
tmp &= ~SSB_IMCFGLO_REQTO;
tmp &= ~SSB_IMCFGLO_SERTO;
tmp |= 0x3;
ssb_write32(dev->dev, SSB_IMCFGLO, tmp);
ssb_commit_settings(bus);
}
}

static void b43_set_synth_pu_delay(struct b43_wldev *dev, bool idle)
Expand Down

0 comments on commit 0fd82ea

Please sign in to comment.