diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2014-07-30 23:02:30 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-07-31 13:45:31 -0400 |
commit | 11d14c7921715bf74fe3b43ba82cdade6f6dc476 (patch) | |
tree | 7cdeeb8cfdd65501495cddf6fb208842b2da3d80 /drivers/net/wireless | |
parent | b9d317040a0a86104d0db0f02821a06fe4afc1cf (diff) | |
download | op-kernel-dev-11d14c7921715bf74fe3b43ba82cdade6f6dc476.zip op-kernel-dev-11d14c7921715bf74fe3b43ba82cdade6f6dc476.tar.gz |
b43: N-PHY: fix "Data bus error" while working in 5 GHz
When switching from one 5 GHz channel to another 5 GHz channel we need
to make sure BPHY is still in a reset. However to access BPHY register
we have to switch to 2 GHz mode for a moment. Otherwise this may result
in "Data bus error" (noticed by Hauke with BCM43224 connected to the
SoC).
Reported-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/b43/phy_n.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/phy_n.c b/drivers/net/wireless/b43/phy_n.c index 1eead7a..e2a3f0d 100644 --- a/drivers/net/wireless/b43/phy_n.c +++ b/drivers/net/wireless/b43/phy_n.c @@ -6217,6 +6217,9 @@ static void b43_nphy_channel_setup(struct b43_wldev *dev, u16 tmp16; if (new_channel->band == IEEE80211_BAND_5GHZ) { + /* Switch to 2 GHz for a moment to access B43_PHY_B_BBCFG */ + b43_phy_mask(dev, B43_NPHY_BANDCTL, ~B43_NPHY_BANDCTL_5GHZ); + tmp16 = b43_read16(dev, B43_MMIO_PSM_PHY_HDR); b43_write16(dev, B43_MMIO_PSM_PHY_HDR, tmp16 | 4); /* Put BPHY in the reset */ |