summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/hw.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-05-24 14:32:22 +0200
committerJohn W. Linville <linville@tuxdriver.com>2012-05-29 19:45:23 +0200
commitbfc441a4bbe9b7a56d3611cc14c98cce3a573565 (patch)
treeae89c3426a25ac22737374f604eb70e74ff67064 /drivers/net/wireless/ath/ath9k/hw.c
parentath9k_hw: update AR933x initvals to fix issues with high power devices (diff)
downloadlinux-bfc441a4bbe9b7a56d3611cc14c98cce3a573565.tar.xz
linux-bfc441a4bbe9b7a56d3611cc14c98cce3a573565.zip
ath9k_hw: apply internal regulator settings on AR933x
On AR933x, the internal regulator settings need to be applied before the PLL init to avoid stability issues. Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/hw.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c
index abe05ec85d50..7db1890448f2 100644
--- a/drivers/net/wireless/ath/ath9k/hw.c
+++ b/drivers/net/wireless/ath/ath9k/hw.c
@@ -1468,6 +1468,9 @@ static bool ath9k_hw_chip_reset(struct ath_hw *ah,
return false;
ah->chip_fullsleep = false;
+
+ if (AR_SREV_9330(ah))
+ ar9003_hw_internal_regulator_apply(ah);
ath9k_hw_init_pll(ah, chan);
ath9k_hw_set_rfmode(ah, chan);