ath9k: Initialize pll_pwrsave for AR9462/AR9565
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Mon, 9 Mar 2015 08:50:08 +0000 (14:20 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 13 Mar 2015 13:19:32 +0000 (15:19 +0200)
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>
drivers/net/wireless/ath/ath9k/hw.c
drivers/net/wireless/ath/ath9k/hw.h
drivers/net/wireless/ath/ath9k/init.c

index 60aa8d71e753fa936909dcc98ef915c2a2208f60..cc8bea8a957f45a35e2067188a4f640c2293512d 100644 (file)
@@ -366,6 +366,9 @@ static void ath9k_hw_init_config(struct ath_hw *ah)
                ah->config.rimt_first = 700;
        }
 
+       if (AR_SREV_9462(ah) || AR_SREV_9565(ah))
+               ah->config.pll_pwrsave = 7;
+
        /*
         * We need this for PCI devices only (Cardbus, PCI, miniPCI)
         * _and_ if on non-uniprocessor systems (Multiprocessor/HT).
index e124ee240dc86fc6f5ecc91c26621364c80011ce..2067cb523ca8a4a637e1b1acdf731abed5c7f794 100644 (file)
@@ -341,7 +341,7 @@ struct ath9k_ops_config {
        u32 ant_ctrl_comm2g_switch_enable;
        bool xatten_margin_cfg;
        bool alt_mingainidx;
-       bool pll_pwrsave;
+       u8 pll_pwrsave;
        bool tx_gain_buffalo;
        bool led_active_high;
 };
index ca66fab78fba1338033f9bc061a0fc1d520e63bd..de862ad13b516ce7df9210789936793e96839ff7 100644 (file)
@@ -440,6 +440,7 @@ static void ath9k_init_pcoem_platform(struct ath_softc *sc)
        /*
         * The default value of pll_pwrsave is 1.
         * For certain AR9485 cards, it is set to 0.
+        * For AR9462, AR9565 it's set to 7.
         */
        ah->config.pll_pwrsave = 1;