linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ming Jiang <mjiang@qca.qualcomm.com>
To: <kvalo@qca.qualcomm.com>
Cc: <ath6kl-devel@qualcomm.com>, <rmani@qca.qualcomm.com>,
	<linux-wireless@vger.kernel.org>,
	Ming Jiang <mjiang@qca.qualcomm.com>
Subject: [PATCH v2] ath6kl clear the MMC_PM_KEEP_POWER for cutpower case
Date: Wed, 18 Apr 2012 09:25:04 +0800	[thread overview]
Message-ID: <1334712304-12666-1-git-send-email-mjiang@qca.qualcomm.com> (raw)

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


             reply	other threads:[~2012-04-18  1:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-18  1:25 Ming Jiang [this message]
2012-04-23 11:27 ` [PATCH v2] ath6kl clear the MMC_PM_KEEP_POWER for cutpower case Kalle Valo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1334712304-12666-1-git-send-email-mjiang@qca.qualcomm.com \
    --to=mjiang@qca.qualcomm.com \
    --cc=ath6kl-devel@qualcomm.com \
    --cc=kvalo@qca.qualcomm.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=rmani@qca.qualcomm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).