diff options
author | Ming Jiang <mjiang@qca.qualcomm.com> | 2012-04-17 21:25:04 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2012-04-23 07:25:34 -0400 |
commit | 5699257f69f9584d10b53bb595ed58a434d64321 (patch) | |
tree | 6d74db6fc3b3604b9038973ed30252482a780f6b | |
parent | 3b8ffc6a22ba05d5ce12f375b060c9e62ed8f016 (diff) |
ath6kl clear the MMC_PM_KEEP_POWER for cutpower case
ath6kl: If wow deepsleep pno suspend failure driver will choose cutpower.
in this scenario MMC_PM_KEEP_POWER should be cleared so that mmc will power
off the ar6000
kvalo: remove extra parenthesis
Signed-off-by: Ming Jiang <mjiang@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/sdio.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/sdio.c b/drivers/net/wireless/ath/ath6kl/sdio.c index cfcc3216db15..0384a0fb654f 100644 --- a/drivers/net/wireless/ath/ath6kl/sdio.c +++ b/drivers/net/wireless/ath/ath6kl/sdio.c | |||
@@ -915,6 +915,9 @@ static int ath6kl_sdio_suspend(struct ath6kl *ar, struct cfg80211_wowlan *wow) | |||
915 | } | 915 | } |
916 | 916 | ||
917 | cut_pwr: | 917 | cut_pwr: |
918 | if (func->card && func->card->host) | ||
919 | func->card->host->pm_flags &= ~MMC_PM_KEEP_POWER; | ||
920 | |||
918 | return ath6kl_cfg80211_suspend(ar, ATH6KL_CFG_SUSPEND_CUTPOWER, NULL); | 921 | return ath6kl_cfg80211_suspend(ar, ATH6KL_CFG_SUSPEND_CUTPOWER, NULL); |
919 | } | 922 | } |
920 | 923 | ||