From: Derek Basehore <dbasehore@chromium.org>
To: Seungwon Jeon <tgih.jun@samsung.com>
Cc: Chris Ball <cjb@laptop.org>,
Grant Likely <grant.likely@linaro.org>,
Rob Herring <rob.herring@calxeda.com>,
linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org,
devicetree@vger.kernel.org,
Derek Basehore <dbasehore@chromium.org>
Subject: [PATCH] mmc: dw_mmc: Don't disable vmmc if keeping power in suspend
Date: Tue, 6 Aug 2013 20:28:58 -0700 [thread overview]
Message-ID: <1375846138-15839-1-git-send-email-dbasehore@chromium.org> (raw)
If we keep power for suspend on a host for dw_mmc, don't disable vmmc-supply
regulator when suspending the host.
Signed-off-by: Derek Basehore <dbasehore@chromium.org>
Reviewed-by: Doug Anderson <dianders@chromium.org>
---
drivers/mmc/host/dw_mmc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
index ee5f167..bf82d7c 100644
--- a/drivers/mmc/host/dw_mmc.c
+++ b/drivers/mmc/host/dw_mmc.c
@@ -2474,7 +2474,7 @@ int dw_mci_suspend(struct dw_mci *host)
}
}
- if (host->vmmc)
+ if (host->vmmc && !(host->pdata->pm_caps & MMC_PM_KEEP_POWER))
regulator_disable(host->vmmc);
return 0;
@@ -2485,7 +2485,7 @@ int dw_mci_resume(struct dw_mci *host)
{
int i, ret;
- if (host->vmmc) {
+ if (host->vmmc && !(host->pdata->pm_caps & MMC_PM_KEEP_POWER)) {
ret = regulator_enable(host->vmmc);
if (ret) {
dev_err(host->dev,
--
1.8.3
next reply other threads:[~2013-08-07 3:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-07 3:28 Derek Basehore [this message]
2013-08-12 10:33 ` [PATCH] mmc: dw_mmc: Don't disable vmmc if keeping power in suspend Seungwon Jeon
2013-08-12 17:31 ` Doug Anderson
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=1375846138-15839-1-git-send-email-dbasehore@chromium.org \
--to=dbasehore@chromium.org \
--cc=cjb@laptop.org \
--cc=devicetree@vger.kernel.org \
--cc=grant.likely@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=rob.herring@calxeda.com \
--cc=tgih.jun@samsung.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).