* [PATCH] ath6kl: Workaround to support Deep Sleep with MSM.
@ 2012-01-30 20:02 Kalle Valo
2012-01-31 19:14 ` Kalle Valo
0 siblings, 1 reply; 2+ messages in thread
From: Kalle Valo @ 2012-01-30 20:02 UTC (permalink / raw)
To: kvalo; +Cc: linux-wireless, ath6kl-devel, Santosh Sajjan
From: Santosh Sajjan <ssajjan@codeaurora.org>
Set the host pm flag MMC_PM_WAKE_SDIO_IRQ to allow host
to disable the sdc2_clk and sdc2_h_clk,so that the MSM device
enter into TCXO shutdown.
Signed-off-by: Santosh Sajjan <ssajjan@codeaurora.org>
---
drivers/net/wireless/ath/ath6kl/sdio.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/drivers/net/wireless/ath/ath6kl/sdio.c b/drivers/net/wireless/ath/ath6kl/sdio.c
index 07dcf00..4febee7 100644
--- a/drivers/net/wireless/ath/ath6kl/sdio.c
+++ b/drivers/net/wireless/ath/ath6kl/sdio.c
@@ -856,6 +856,19 @@ static int ath6kl_sdio_suspend(struct ath6kl *ar, struct cfg80211_wowlan *wow)
if (ret)
goto cut_pwr;
+ /*
+ * Workaround to support Deep Sleep with MSM, set the host pm
+ * flag as MMC_PM_WAKE_SDIO_IRQ to allow SDCC deiver to disable
+ * the sdc2_clock and internally allows MSM to enter
+ * TCXO shutdown properly.
+ */
+ if ((flags & MMC_PM_WAKE_SDIO_IRQ)) {
+ ret = sdio_set_host_pm_flags(func,
+ MMC_PM_WAKE_SDIO_IRQ);
+ if (ret)
+ goto cut_pwr;
+ }
+
ret = ath6kl_cfg80211_suspend(ar, ATH6KL_CFG_SUSPEND_DEEPSLEEP,
NULL);
if (ret)
--
1.7.6
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ath6kl: Workaround to support Deep Sleep with MSM.
2012-01-30 20:02 [PATCH] ath6kl: Workaround to support Deep Sleep with MSM Kalle Valo
@ 2012-01-31 19:14 ` Kalle Valo
0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2012-01-31 19:14 UTC (permalink / raw)
To: Santosh Sajjan; +Cc: linux-wireless, ath6kl-devel
On 01/30/2012 10:02 PM, Kalle Valo wrote:
> From: Santosh Sajjan <ssajjan@codeaurora.org>
>
> Set the host pm flag MMC_PM_WAKE_SDIO_IRQ to allow host
> to disable the sdc2_clk and sdc2_h_clk,so that the MSM device
> enter into TCXO shutdown.
>
> Signed-off-by: Santosh Sajjan <ssajjan@codeaurora.org>
Thanks, applied.
Kalle
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-01-31 19:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-30 20:02 [PATCH] ath6kl: Workaround to support Deep Sleep with MSM Kalle Valo
2012-01-31 19:14 ` 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.