Skip to content

Commit

Permalink
ath9k_hw: validate MCI stuck after RTC wakeup
Browse files Browse the repository at this point in the history
Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Rajkumar Manoharan authored and John W. Linville committed Oct 29, 2012
1 parent e75d4ed commit cdbe408
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/wireless/ath/ath9k/hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -2153,9 +2153,6 @@ static bool ath9k_hw_set_power_awake(struct ath_hw *ah)
AR_RTC_FORCE_WAKE_EN);
udelay(50);

if (ath9k_hw_mci_is_enabled(ah))
ar9003_mci_set_power_awake(ah);

for (i = POWER_UP_TIME / 50; i > 0; i--) {
val = REG_READ(ah, AR_RTC_STATUS) & AR_RTC_STATUS_M;
if (val == AR_RTC_STATUS_ON)
Expand All @@ -2171,6 +2168,9 @@ static bool ath9k_hw_set_power_awake(struct ath_hw *ah)
return false;
}

if (ath9k_hw_mci_is_enabled(ah))
ar9003_mci_set_power_awake(ah);

REG_CLR_BIT(ah, AR_STA_ID1, AR_STA_ID1_PWR_SAV);

return true;
Expand Down

0 comments on commit cdbe408

Please sign in to comment.