b43: LP-PHY: Revert to the original PHY register write routine
authorGábor Stefanik <netrolller.3d@gmail.com>
Wed, 26 Aug 2009 21:46:18 +0000 (23:46 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 28 Aug 2009 18:40:53 +0000 (14:40 -0400)
After some discussion on IRC about the PHY register write change,
I am not sure anymore if this is the right thing to do.

Signed-off-by: Gábor Stefanik <netrolller.3d@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43/phy_lp.c

index 80f245c040429008adcf761236ae0e11f041c691..7d2a7027235a4aaf66b692596e078f4edf026237 100644 (file)
@@ -1496,7 +1496,8 @@ static u16 b43_lpphy_op_read(struct b43_wldev *dev, u16 reg)
 
 static void b43_lpphy_op_write(struct b43_wldev *dev, u16 reg, u16 value)
 {
-       b43_write32(dev, B43_MMIO_PHY_CONTROL, ((u32)value << 16) | reg);
+       b43_write16(dev, B43_MMIO_PHY_CONTROL, reg);
+       b43_write16(dev, B43_MMIO_PHY_DATA, value);
 }
 
 static void b43_lpphy_op_maskset(struct b43_wldev *dev, u16 reg, u16 mask,