Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 194999
b: refs/heads/master
c: 5efa3a6
h: refs/heads/master
i:
  194997: f663f07
  194995: 1b1ca3e
  194991: 9295565
v: v3
  • Loading branch information
Luis R. Rodriguez authored and John W. Linville committed May 10, 2010
1 parent 0da108e commit be08c30
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9e385c56a1eecfb62dbc5162037fb4ed1676b27e
refs/heads/master: 5efa3a6bf4dd1674920d7419cbde9d731cdb61f1
20 changes: 20 additions & 0 deletions trunk/drivers/net/wireless/ath/ath9k/hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,26 @@ static int __ath9k_hw_init(struct ath_hw *ah)

ath9k_hw_init_mode_regs(ah);

/*
* Configire PCIE after Ini init. SERDES values now come from ini file
* This enables PCIe low power mode.
*/
if (AR_SREV_9300_20_OR_LATER(ah)) {
u32 regval;
unsigned int i;

/* Set Bits 16 and 17 in the AR_WA register. */
regval = REG_READ(ah, AR_WA);
regval |= 0x00030000;
REG_WRITE(ah, AR_WA, regval);

for (i = 0; i < ah->iniPcieSerdesLowPower.ia_rows; i++) {
REG_WRITE(ah,
INI_RA(&ah->iniPcieSerdesLowPower, i, 0),
INI_RA(&ah->iniPcieSerdesLowPower, i, 1));
}
}

if (ah->is_pciexpress)
ath9k_hw_configpcipowersave(ah, 0, 0);
else
Expand Down

0 comments on commit be08c30

Please sign in to comment.