diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2014-07-08 09:11:04 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-07-15 15:51:36 -0400 |
commit | 0933ecf9ab1f0ff7ae1ff4309aee0b909fc785d9 (patch) | |
tree | 2dcc1d462c3e0965ec01109b645ca33edb4c9f81 /drivers/net | |
parent | 88d825bffd3d537350d0000b7ef15cb00532d417 (diff) |
b43: N-PHY: drop reg 0x1 access restriction on new PHY revs
Initialization of N-PHY radio revs 5 and 7 requires writing to 0x1.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/b43/phy_n.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/b43/phy_n.c b/drivers/net/wireless/b43/phy_n.c index 50ca6f87d5e8..1dba6409a05f 100644 --- a/drivers/net/wireless/b43/phy_n.c +++ b/drivers/net/wireless/b43/phy_n.c | |||
@@ -5834,7 +5834,7 @@ static void b43_nphy_op_maskset(struct b43_wldev *dev, u16 reg, u16 mask, | |||
5834 | static u16 b43_nphy_op_radio_read(struct b43_wldev *dev, u16 reg) | 5834 | static u16 b43_nphy_op_radio_read(struct b43_wldev *dev, u16 reg) |
5835 | { | 5835 | { |
5836 | /* Register 1 is a 32-bit register. */ | 5836 | /* Register 1 is a 32-bit register. */ |
5837 | B43_WARN_ON(reg == 1); | 5837 | B43_WARN_ON(dev->phy.rev < 7 && reg == 1); |
5838 | 5838 | ||
5839 | if (dev->phy.rev >= 7) | 5839 | if (dev->phy.rev >= 7) |
5840 | reg |= 0x200; /* Radio 0x2057 */ | 5840 | reg |= 0x200; /* Radio 0x2057 */ |
@@ -5848,7 +5848,7 @@ static u16 b43_nphy_op_radio_read(struct b43_wldev *dev, u16 reg) | |||
5848 | static void b43_nphy_op_radio_write(struct b43_wldev *dev, u16 reg, u16 value) | 5848 | static void b43_nphy_op_radio_write(struct b43_wldev *dev, u16 reg, u16 value) |
5849 | { | 5849 | { |
5850 | /* Register 1 is a 32-bit register. */ | 5850 | /* Register 1 is a 32-bit register. */ |
5851 | B43_WARN_ON(reg == 1); | 5851 | B43_WARN_ON(dev->phy.rev < 7 && reg == 1); |
5852 | 5852 | ||
5853 | b43_write16(dev, B43_MMIO_RADIO_CONTROL, reg); | 5853 | b43_write16(dev, B43_MMIO_RADIO_CONTROL, reg); |
5854 | b43_write16(dev, B43_MMIO_RADIO_DATA_LOW, value); | 5854 | b43_write16(dev, B43_MMIO_RADIO_DATA_LOW, value); |