diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2011-12-12 15:38:35 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-12-13 15:47:44 -0500 |
commit | 03f665c895fa9801ef4701d3e4e0918055370ee2 (patch) | |
tree | 665b1dd921e566acd6f0b5257ed934cbd7ef7fa7 | |
parent | daadc6b3bd563128de67bafa1c0fc38508d5760e (diff) |
b43: N-PHY: fix 32-bit reads of tables
The order is different than on older PHYs.
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 | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/b43/tables_nphy.c b/drivers/net/wireless/b43/tables_nphy.c index 691839e7541c..e1fc337df84b 100644 --- a/drivers/net/wireless/b43/tables_nphy.c +++ b/drivers/net/wireless/b43/tables_nphy.c | |||
@@ -2880,9 +2880,8 @@ u32 b43_ntab_read(struct b43_wldev *dev, u32 offset) | |||
2880 | break; | 2880 | break; |
2881 | case B43_NTAB_32BIT: | 2881 | case B43_NTAB_32BIT: |
2882 | b43_phy_write(dev, B43_NPHY_TABLE_ADDR, offset); | 2882 | b43_phy_write(dev, B43_NPHY_TABLE_ADDR, offset); |
2883 | value = b43_phy_read(dev, B43_NPHY_TABLE_DATAHI); | 2883 | value = b43_phy_read(dev, B43_NPHY_TABLE_DATALO); |
2884 | value <<= 16; | 2884 | value |= b43_phy_read(dev, B43_NPHY_TABLE_DATAHI) << 16; |
2885 | value |= b43_phy_read(dev, B43_NPHY_TABLE_DATALO); | ||
2886 | break; | 2885 | break; |
2887 | default: | 2886 | default: |
2888 | B43_WARN_ON(1); | 2887 | B43_WARN_ON(1); |
@@ -2916,9 +2915,10 @@ void b43_ntab_read_bulk(struct b43_wldev *dev, u32 offset, | |||
2916 | data += 2; | 2915 | data += 2; |
2917 | break; | 2916 | break; |
2918 | case B43_NTAB_32BIT: | 2917 | case B43_NTAB_32BIT: |
2919 | *((u32 *)data) = b43_phy_read(dev, B43_NPHY_TABLE_DATAHI); | 2918 | *((u32 *)data) = |
2920 | *((u32 *)data) <<= 16; | 2919 | b43_phy_read(dev, B43_NPHY_TABLE_DATALO); |
2921 | *((u32 *)data) |= b43_phy_read(dev, B43_NPHY_TABLE_DATALO); | 2920 | *((u32 *)data) |= |
2921 | b43_phy_read(dev, B43_NPHY_TABLE_DATAHI) << 16; | ||
2922 | data += 4; | 2922 | data += 4; |
2923 | break; | 2923 | break; |
2924 | default: | 2924 | default: |