Signed-off-by: Jialing Fu <j...@marvell.com>
Signed-off-by: Kevin Liu <kl...@marvell.com>
---
 drivers/mmc/host/sdhci-pxav3.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/drivers/mmc/host/sdhci-pxav3.c b/drivers/mmc/host/sdhci-pxav3.c
index b4aca81..ff06aff 100644
--- a/drivers/mmc/host/sdhci-pxav3.c
+++ b/drivers/mmc/host/sdhci-pxav3.c
@@ -325,6 +325,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);
+       }
+
        pm_runtime_put_autosuspend(&pdev->dev);
 
        return 0;
-- 
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to