]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ath6kl clear the MMC_PM_KEEP_POWER for cutpower case
authorMing Jiang <mjiang@qca.qualcomm.com>
Wed, 18 Apr 2012 01:25:04 +0000 (09:25 +0800)
committerKalle Valo <kvalo@qca.qualcomm.com>
Mon, 23 Apr 2012 11:25:34 +0000 (14:25 +0300)
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>
drivers/net/wireless/ath/ath6kl/sdio.c

index cfcc3216db155a056a73daecbcf6313baff68ba8..0384a0fb654f8608f249e95dc5649c9f84f349ad 100644 (file)
@@ -915,6 +915,9 @@ static int ath6kl_sdio_suspend(struct ath6kl *ar, struct cfg80211_wowlan *wow)
        }
 
 cut_pwr:
+       if (func->card && func->card->host)
+               func->card->host->pm_flags &= ~MMC_PM_KEEP_POWER;
+
        return ath6kl_cfg80211_suspend(ar, ATH6KL_CFG_SUSPEND_CUTPOWER, NULL);
 }