Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 291231
b: refs/heads/master
c: 9c083af
h: refs/heads/master
i:
  291229: db9203d
  291227: 29df1de
  291223: 53e0465
  291215: d177afe
  291199: 669eebe
v: v3
  • Loading branch information
Felix Fietkau authored and John W. Linville committed Mar 7, 2012
1 parent 4abf006 commit 17c8d5b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fcff4f108dce0692410f390a05565f4b1b84577f
refs/heads/master: 9c083af8683808e486c20ca1f36da520d82e5981
14 changes: 10 additions & 4 deletions trunk/drivers/net/wireless/ath/ath9k/hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1386,10 +1386,16 @@ static bool ath9k_hw_set_reset_reg(struct ath_hw *ah, u32 type)
static bool ath9k_hw_chip_reset(struct ath_hw *ah,
struct ath9k_channel *chan)
{
if (AR_SREV_9280(ah) && ah->eep_ops->get_eeprom(ah, EEP_OL_PWRCTRL)) {
if (!ath9k_hw_set_reset_reg(ah, ATH9K_RESET_POWER_ON))
return false;
} else if (!ath9k_hw_set_reset_reg(ah, ATH9K_RESET_WARM))
int reset_type = ATH9K_RESET_WARM;

if (AR_SREV_9280(ah)) {
if (ah->eep_ops->get_eeprom(ah, EEP_OL_PWRCTRL))
reset_type = ATH9K_RESET_POWER_ON;
else
reset_type = ATH9K_RESET_COLD;
}

if (!ath9k_hw_set_reset_reg(ah, reset_type))
return false;

if (!ath9k_hw_setpower(ah, ATH9K_PM_AWAKE))
Expand Down

0 comments on commit 17c8d5b

Please sign in to comment.