aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43/tables_phy_lcn.c
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2011-08-31 17:36:16 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-09-13 15:53:45 -0400
commit0b4ff45d8e0f0f34e18823bd4e144bc324cae4ba (patch)
tree390bea7fa8a658977960a28a99829dd57cc17939 /drivers/net/wireless/b43/tables_phy_lcn.c
parent5126d97ef5a38df8b24abb7611dcba7e5b729021 (diff)
b43: LCN-PHY: minor fixes
The biggest change is reversing order of reading 32-bit table value. MMIO dumps has shown it's done that way for LCN-PHY. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43/tables_phy_lcn.c')
-rw-r--r--drivers/net/wireless/b43/tables_phy_lcn.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/net/wireless/b43/tables_phy_lcn.c b/drivers/net/wireless/b43/tables_phy_lcn.c
index 0a5842808a78..916d3f194f42 100644
--- a/drivers/net/wireless/b43/tables_phy_lcn.c
+++ b/drivers/net/wireless/b43/tables_phy_lcn.c
@@ -318,9 +318,8 @@ u32 b43_lcntab_read(struct b43_wldev *dev, u32 offset)
318 break; 318 break;
319 case B43_LCNTAB_32BIT: 319 case B43_LCNTAB_32BIT:
320 b43_phy_write(dev, B43_PHY_LCN_TABLE_ADDR, offset); 320 b43_phy_write(dev, B43_PHY_LCN_TABLE_ADDR, offset);
321 value = b43_phy_read(dev, B43_PHY_LCN_TABLE_DATAHI); 321 value = b43_phy_read(dev, B43_PHY_LCN_TABLE_DATALO);
322 value <<= 16; 322 value |= (b43_phy_read(dev, B43_PHY_LCN_TABLE_DATAHI) << 16);
323 value |= b43_phy_read(dev, B43_PHY_LCN_TABLE_DATALO);
324 break; 323 break;
325 default: 324 default:
326 B43_WARN_ON(1); 325 B43_WARN_ON(1);
@@ -357,10 +356,9 @@ void b43_lcntab_read_bulk(struct b43_wldev *dev, u32 offset,
357 break; 356 break;
358 case B43_LCNTAB_32BIT: 357 case B43_LCNTAB_32BIT:
359 *((u32 *)data) = b43_phy_read(dev, 358 *((u32 *)data) = b43_phy_read(dev,
360 B43_PHY_LCN_TABLE_DATAHI);
361 *((u32 *)data) <<= 16;
362 *((u32 *)data) |= b43_phy_read(dev,
363 B43_PHY_LCN_TABLE_DATALO); 359 B43_PHY_LCN_TABLE_DATALO);
360 *((u32 *)data) |= (b43_phy_read(dev,
361 B43_PHY_LCN_TABLE_DATAHI) << 16);
364 data += 4; 362 data += 4;
365 break; 363 break;
366 default: 364 default: