diff options
author | Kevin Liu <kliu5@marvell.com> | 2013-01-14 14:38:53 -0500 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-01-28 06:51:33 -0500 |
commit | 9ddc4f27cf9ebb413c713fb4419c4f5e80c6a5f3 (patch) | |
tree | 835682648bf4f483b896c2e5f025756aba59112b /drivers | |
parent | 8678b8181dacb1804325f70e63a176873ce9784f (diff) |
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')
-rw-r--r-- | 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 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) | |||
311 | 311 | ||
312 | platform_set_drvdata(pdev, host); | 312 | platform_set_drvdata(pdev, host); |
313 | 313 | ||
314 | if (pdata->pm_caps & MMC_PM_KEEP_POWER) { | ||
315 | device_init_wakeup(&pdev->dev, 1); | ||
316 | host->mmc->pm_flags |= MMC_PM_WAKE_SDIO_IRQ; | ||
317 | } else { | ||
318 | device_init_wakeup(&pdev->dev, 0); | ||
319 | } | ||
320 | |||
314 | return 0; | 321 | return 0; |
315 | 322 | ||
316 | err_add_host: | 323 | err_add_host: |