projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8678b81
)
mmc: sdhci-pxav3: add IRQ wake up support
author
Kevin Liu
<
[email protected]
>
Mon, 14 Jan 2013 19:38:53 +0000
(14:38 -0500)
committer
Chris Ball
<
[email protected]
>
Mon, 28 Jan 2013 11:51:33 +0000
(06:51 -0500)
[cjb: The MMP3 architecture requires a registered interrupt to retire wfi
when waking from suspend.]
Signed-off-by: Jialing Fu <
[email protected]
>
Signed-off-by: Kevin Liu <
[email protected]
>
Signed-off-by: Chris Ball <
[email protected]
>
drivers/mmc/host/sdhci-pxav3.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/sdhci-pxav3.c
b/drivers/mmc/host/sdhci-pxav3.c
index b7ee7761bc26ada94cd21b8ca7bb51391bcc3afd..3d20c10fc5715669a77a3bd91b6b233be59e2bb4 100644
(file)
--- 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: