Skip to contentSkip to conversation

ath6kl clear the MMC_PM_KEEP_POWER for cutpower case

PATCH Applied Ming Jiang 2 participants 2 messages Apr 18, 2012 – Apr 23, 2012 Atheros ATH6KL wireless driver

lore
Share & tools
lore

Ming Jiang

author
#0 lore raw

PATCH v2 1/1 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

---
 drivers/net/wireless/ath/ath6kl/sdio.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
drivers/net/wireless/ath/ath6kl/sdio.c +3 -0
index 44ea7a7..f6ac4f7 100644
@@ -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);
 }
 
Signature · 1 line
1.7.1
Applied
#1 lore raw
Quoted 5 lines · Ming Jiang

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

Thanks, applied. But I removed extra parenthesis.

Kalle