Skip to content

Commit

Permalink
mmc: sdhci-pxav3: add IRQ wake up support
Browse files Browse the repository at this point in the history
[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>
  • Loading branch information
Kevin Liu authored and Chris Ball committed Jan 28, 2013
1 parent 8678b81 commit 9ddc4f2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/mmc/host/sdhci-pxav3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9ddc4f2

Please sign in to comment.