ath9k: Remove pcieSerDesWrite

This HW config option is always set to true and is not needed.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Sujith Manoharan 2013-10-29 11:52:06 +05:30 committed by John W. Linville
parent 28148db74d
commit c6fc7e64e1
3 changed files with 9 additions and 13 deletions

View file

@ -754,6 +754,9 @@ static void ar9003_hw_init_mode_gain_regs(struct ath_hw *ah)
static void ar9003_hw_configpcipowersave(struct ath_hw *ah, static void ar9003_hw_configpcipowersave(struct ath_hw *ah,
bool power_off) bool power_off)
{ {
unsigned int i;
struct ar5416IniArray *array;
/* /*
* Increase L1 Entry Latency. Some WB222 boards don't have * Increase L1 Entry Latency. Some WB222 boards don't have
* this change in eeprom/OTP. * this change in eeprom/OTP.
@ -779,18 +782,13 @@ static void ar9003_hw_configpcipowersave(struct ath_hw *ah,
* Configire PCIE after Ini init. SERDES values now come from ini file * Configire PCIE after Ini init. SERDES values now come from ini file
* This enables PCIe low power mode. * This enables PCIe low power mode.
*/ */
if (ah->config.pcieSerDesWrite) { array = power_off ? &ah->iniPcieSerdes :
unsigned int i; &ah->iniPcieSerdesLowPower;
struct ar5416IniArray *array;
array = power_off ? &ah->iniPcieSerdes : for (i = 0; i < array->ia_rows; i++) {
&ah->iniPcieSerdesLowPower; REG_WRITE(ah,
INI_RA(array, i, 0),
for (i = 0; i < array->ia_rows; i++) { INI_RA(array, i, 1));
REG_WRITE(ah,
INI_RA(array, i, 0),
INI_RA(array, i, 1));
}
} }
} }

View file

@ -454,7 +454,6 @@ static void ath9k_hw_init_config(struct ath_hw *ah)
} }
ah->config.rx_intr_mitigation = true; ah->config.rx_intr_mitigation = true;
ah->config.pcieSerDesWrite = true;
/* /*
* We need this for PCI devices only (Cardbus, PCI, miniPCI) * We need this for PCI devices only (Cardbus, PCI, miniPCI)

View file

@ -283,7 +283,6 @@ struct ath9k_ops_config {
int additional_swba_backoff; int additional_swba_backoff;
int ack_6mb; int ack_6mb;
u32 cwm_ignore_extcca; u32 cwm_ignore_extcca;
bool pcieSerDesWrite;
u8 pcie_clock_req; u8 pcie_clock_req;
u32 pcie_waen; u32 pcie_waen;
u8 analog_shiftreg; u8 analog_shiftreg;