diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2011-12-12 15:38:36 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-12-13 15:47:48 -0500 |
commit | 6a6865ef32065102a32ebe1a604d3b88426410fa (patch) | |
tree | bda2665ab0223fa64a077ffb5c42cb91348986e2 | |
parent | 03f665c895fa9801ef4701d3e4e0918055370ee2 (diff) |
b43: N-PHY: workaround broken auto-increment on BCM43224
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/b43/tables_nphy.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/tables_nphy.c b/drivers/net/wireless/b43/tables_nphy.c index e1fc337df84b..3252560e9fa1 100644 --- a/drivers/net/wireless/b43/tables_nphy.c +++ b/drivers/net/wireless/b43/tables_nphy.c | |||
@@ -2905,6 +2905,12 @@ void b43_ntab_read_bulk(struct b43_wldev *dev, u32 offset, | |||
2905 | b43_phy_write(dev, B43_NPHY_TABLE_ADDR, offset); | 2905 | b43_phy_write(dev, B43_NPHY_TABLE_ADDR, offset); |
2906 | 2906 | ||
2907 | for (i = 0; i < nr_elements; i++) { | 2907 | for (i = 0; i < nr_elements; i++) { |
2908 | /* Auto increment broken + caching issue on BCM43224? */ | ||
2909 | if (dev->dev->chip_id == 43224 && dev->dev->chip_rev == 1) { | ||
2910 | b43_phy_read(dev, B43_NPHY_TABLE_DATALO); | ||
2911 | b43_phy_write(dev, B43_NPHY_TABLE_ADDR, offset + i); | ||
2912 | } | ||
2913 | |||
2908 | switch (type) { | 2914 | switch (type) { |
2909 | case B43_NTAB_8BIT: | 2915 | case B43_NTAB_8BIT: |
2910 | *data = b43_phy_read(dev, B43_NPHY_TABLE_DATALO) & 0xFF; | 2916 | *data = b43_phy_read(dev, B43_NPHY_TABLE_DATALO) & 0xFF; |