Message ID | 1357377694-2167-2-git-send-email-kliu5@marvell.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Hi, On Sat, Jan 05 2013, Kevin Liu wrote: > Signed-off-by: Jialing Fu <jlfu@marvell.com> > Signed-off-by: Kevin Liu <kliu5@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; Thanks, pushed to mmc-next for 3.9. - Chris.
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;