summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@stericsson.com>2011-10-21 14:01:12 +0200
committerUlf HANSSON <ulf.hansson@stericsson.com>2011-10-21 14:04:11 +0200
commit7140635c4da013a0d851d9f2bf69ced467b8b6ba (patch)
tree7b7edd05b1a7418a551888cf675a5ca3c1840817 /drivers/mmc
parent21743066198c3c89a42c3f7e53f943c335881e7d (diff)
mmc: mmci: Support MMC_PM_KEEP_POWER
Add MMC_PM_KEEP_POWER to pm_caps so SDIO clients are able to use this option to prevent power off in suspend. Change-Id: I36df77e66ca8845ceeffb9d5163d4c1e77821b7d Signed-off-by: Ulf Hansson <ulf.hansson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34918
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/mmci.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c
index 4227e3a0d48..8d925501562 100644
--- a/drivers/mmc/host/mmci.c
+++ b/drivers/mmc/host/mmci.c
@@ -20,6 +20,7 @@
#include <linux/highmem.h>
#include <linux/log2.h>
#include <linux/pm_runtime.h>
+#include <linux/mmc/pm.h>
#include <linux/mmc/host.h>
#include <linux/mmc/card.h>
#include <linux/amba/bus.h>
@@ -1301,6 +1302,9 @@ static int __devinit mmci_probe(struct amba_device *dev,
mmc->ocr_avail = plat->ocr_mask;
mmc->caps = plat->capabilities;
+ /* We support these PM capabilities. */
+ mmc->pm_caps = MMC_PM_KEEP_POWER;
+
/*
* We can do SGIO
*/