diff mbox

[v2,2/2] mmc: sdhci-pxav3: add wake up support

Message ID 1357377694-2167-2-git-send-email-kliu5@marvell.com (mailing list archive)
State New, archived
Headers show

Commit Message

Kevin Liu Jan. 5, 2013, 9:21 a.m. UTC
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(-)

Comments

Chris Ball Jan. 14, 2013, 7:43 p.m. UTC | #1
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 mbox

Patch

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;