b43: LP-PHY: Revert to the original PHY register write routine
PATCH 1/1 b43: LP-PHY: Revert to the original PHY register write routine
From: root <[email protected]>
After some discussion on IRC about the PHY register write change, I am not sure anymore if this is the right thing to do.
--- drivers/net/wireless/b43/phy_lp.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/net/wireless/b43/phy_lp.c +2 -1
@@ -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_write32 (dev,B43_MMIO_PHY_CONTROL , reg); +b43_write32 (dev,B43_MMIO_PHY_DATA , value); } static void b43_lpphy_op_maskset(struct b43_wldev *dev, u16 reg, u16 mask,
Signature · 1 line
1.5.6
2009/8/26 Gábor Stefanik <[email protected]>:
Quoted 1 line
From: root <[email protected]>
The joys of an accidental "sudo git format-patch"... :-)
Quoted 27 lines
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 <[email protected]>---
drivers/net/wireless/b43/phy_lp.c | 3 ++-1 files changed, 2 insertions(+), 1 deletions(-)drivers/net/wireless/b43/phy_lp.c +2
-2@@ -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_write32(dev, B43_MMIO_PHY_CONTROL, reg); + b43_write32(dev, B43_MMIO_PHY_DATA, value); } static void b43_lpphy_op_maskset(struct b43_wldev *dev, u16 reg, u16 mask, --1.5.6
Signature · 1 line
Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-)
Quoted 15 lines · On Wednesday 26 August 2009 23:38:48 Gábor Stefanik wrote:
From: root <[email protected]>
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 <[email protected]>--- drivers/net/wireless/b43/phy_lp.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)drivers/net/wireless/b43/phy_lp.c +0
-0
drivers/net/wireless/b43/phy_lp.c static u16 b43_lpphy_op_read(struct b43_wldev *dev, u16 reg) · line 1500
Quoted 6 lines
drivers/net/wireless/b43/phy_lp.c +2
-1@@ -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_write32 (dev,B43_MMIO_PHY_CONTROL , reg); +b43_write32 (dev,B43_MMIO_PHY_DATA , value);
You just introduced a bug (need 16bit write).
As I said. I'm OK with it, if it works. Just submit it as separate patch in the future.
Quoted 3 lines
drivers/net/wireless/b43/phy_lp.c +0
-0} static void b43_lpphy_op_maskset(struct b43_wldev *dev, u16 reg, u16 mask,
Signature · 1 line
Greetings, Michael.