summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci-pxav3.c
diff options
context:
space:
mode:
authorKevin Liu2013-01-14 20:38:53 +0100
committerChris Ball2013-02-11 19:28:51 +0100
commit740b7a44aedbe8d916ce21b636f78467f5da1c59 (patch)
tree6cf44d4a96d0001841fbc01f0dd883faacda914d /drivers/mmc/host/sdhci-pxav3.c
parentmmc: sdhci: add IRQ wake up support (diff)
downloadkernel-qcow2-linux-740b7a44aedbe8d916ce21b636f78467f5da1c59.tar.gz
kernel-qcow2-linux-740b7a44aedbe8d916ce21b636f78467f5da1c59.tar.xz
kernel-qcow2-linux-740b7a44aedbe8d916ce21b636f78467f5da1c59.zip
mmc: sdhci-pxav3: add IRQ wake up support
[cjb: The MMP3 architecture requires a registered interrupt to retire wfi when waking from suspend.] Signed-off-by: Jialing Fu <jlfu@marvell.com> Signed-off-by: Kevin Liu <kliu5@marvell.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/sdhci-pxav3.c')
-rw-r--r--drivers/mmc/host/sdhci-pxav3.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci-pxav3.c b/drivers/mmc/host/sdhci-pxav3.c
index b7ee7761bc26..3d20c10fc571 100644
--- a/drivers/mmc/host/sdhci-pxav3.c
+++ b/drivers/mmc/host/sdhci-pxav3.c
@@ -311,6 +311,13 @@ static int sdhci_pxav3_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, host);
+ if (pdata->pm_caps & MMC_PM_KEEP_POWER) {
+ device_init_wakeup(&pdev->dev, 1);
+ host->mmc->pm_flags |= MMC_PM_WAKE_SDIO_IRQ;
+ } else {
+ device_init_wakeup(&pdev->dev, 0);
+ }
+
return 0;
err_add_host: