Skip to content

Commit

Permalink
ARM: 7618/1: mmc: mmci: Support MMC_PM_KEEP_POWER
Browse files Browse the repository at this point in the history
Add MMC_PM_KEEP_POWER to pm_caps so SDIO clients are able
to use this option to prevent power off in suspend.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Ulf Hansson authored and Russell King committed Jan 8, 2013
1 parent 6dbb6ee commit 70be208
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/mmc/host/mmci.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <linux/err.h>
#include <linux/highmem.h>
#include <linux/log2.h>
#include <linux/mmc/pm.h>
#include <linux/mmc/host.h>
#include <linux/mmc/card.h>
#include <linux/amba/bus.h>
Expand Down Expand Up @@ -1416,6 +1417,9 @@ static int mmci_probe(struct amba_device *dev,
mmc->caps = plat->capabilities;
mmc->caps2 = plat->capabilities2;

/* We support these PM capabilities. */
mmc->pm_caps = MMC_PM_KEEP_POWER;

/*
* We can do SGIO
*/
Expand Down

0 comments on commit 70be208

Please sign in to comment.