aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSujith Manoharan <c_manoha@qca.qualcomm.com>2015-03-09 04:50:08 -0400
committerKalle Valo <kvalo@codeaurora.org>2015-03-13 09:19:32 -0400
commit656cd75c387383fe3a63e21204107abf5515ecfc (patch)
treeca9356beb6c45d35f59d62d888a9180235dd35c3
parentafa7e6dbd91d3d9e18d224116353087082479dc5 (diff)
ath9k: Initialize pll_pwrsave for AR9462/AR9565
Cards based on AR9462/AR9565 support more PCIE power save mechanisms, so register them correctly. Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.c3
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.h2
-rw-r--r--drivers/net/wireless/ath/ath9k/init.c1
3 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c
index 60aa8d71e753..cc8bea8a957f 100644
--- a/drivers/net/wireless/ath/ath9k/hw.c
+++ b/drivers/net/wireless/ath/ath9k/hw.c
@@ -366,6 +366,9 @@ static void ath9k_hw_init_config(struct ath_hw *ah)
366 ah->config.rimt_first = 700; 366 ah->config.rimt_first = 700;
367 } 367 }
368 368
369 if (AR_SREV_9462(ah) || AR_SREV_9565(ah))
370 ah->config.pll_pwrsave = 7;
371
369 /* 372 /*
370 * We need this for PCI devices only (Cardbus, PCI, miniPCI) 373 * We need this for PCI devices only (Cardbus, PCI, miniPCI)
371 * _and_ if on non-uniprocessor systems (Multiprocessor/HT). 374 * _and_ if on non-uniprocessor systems (Multiprocessor/HT).
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h
index e124ee240dc8..2067cb523ca8 100644
--- a/drivers/net/wireless/ath/ath9k/hw.h
+++ b/drivers/net/wireless/ath/ath9k/hw.h
@@ -341,7 +341,7 @@ struct ath9k_ops_config {
341 u32 ant_ctrl_comm2g_switch_enable; 341 u32 ant_ctrl_comm2g_switch_enable;
342 bool xatten_margin_cfg; 342 bool xatten_margin_cfg;
343 bool alt_mingainidx; 343 bool alt_mingainidx;
344 bool pll_pwrsave; 344 u8 pll_pwrsave;
345 bool tx_gain_buffalo; 345 bool tx_gain_buffalo;
346 bool led_active_high; 346 bool led_active_high;
347}; 347};
diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c
index ca66fab78fba..de862ad13b51 100644
--- a/drivers/net/wireless/ath/ath9k/init.c
+++ b/drivers/net/wireless/ath/ath9k/init.c
@@ -440,6 +440,7 @@ static void ath9k_init_pcoem_platform(struct ath_softc *sc)
440 /* 440 /*
441 * The default value of pll_pwrsave is 1. 441 * The default value of pll_pwrsave is 1.
442 * For certain AR9485 cards, it is set to 0. 442 * For certain AR9485 cards, it is set to 0.
443 * For AR9462, AR9565 it's set to 7.
443 */ 444 */
444 ah->config.pll_pwrsave = 1; 445 ah->config.pll_pwrsave = 1;
445 446