* [PATCH v2] ath6kl clear the MMC_PM_KEEP_POWER for cutpower case
@ 2012-04-18 1:25 Ming Jiang
2012-04-23 11:27 ` Kalle Valo
0 siblings, 1 reply; 2+ messages in thread
From: Ming Jiang @ 2012-04-18 1:25 UTC (permalink / raw)
To: kvalo; +Cc: ath6kl-devel, rmani, linux-wireless, 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
Signed-off-by: Ming Jiang <mjiang@qca.qualcomm.com>
---
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 44ea7a7..f6ac4f7 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)
}
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);
}
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] ath6kl clear the MMC_PM_KEEP_POWER for cutpower case
2012-04-18 1:25 [PATCH v2] ath6kl clear the MMC_PM_KEEP_POWER for cutpower case Ming Jiang
@ 2012-04-23 11:27 ` Kalle Valo
0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2012-04-23 11:27 UTC (permalink / raw)
To: Ming Jiang; +Cc: ath6kl-devel, rmani, linux-wireless
On 04/18/2012 04:25 AM, Ming Jiang wrote:
> 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
>
> Signed-off-by: Ming Jiang <mjiang@qca.qualcomm.com>
Thanks, applied. But I removed extra parenthesis.
Kalle
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-04-23 11:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-18 1:25 [PATCH v2] ath6kl clear the MMC_PM_KEEP_POWER for cutpower case Ming Jiang
2012-04-23 11:27 ` Kalle Valo
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.