From: Shawn Lin Date: Mon, 15 Aug 2016 03:09:26 +0000 (+0800) Subject: mmc: sdhci-of-arasan: wakeup genpd when being in suspend X-Git-Tag: firefly_0821_release~1743 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=5dc806cc889ffa876e7a6cea2787acb3bc02240f;p=firefly-linux-kernel-4.4.55.git mmc: sdhci-of-arasan: wakeup genpd when being in suspend Let's keep genpd for sdhci alive while entering deep sleep which gte me out of yapping around. Change-Id: I0da20b417621d277745bafd53d1ee461aae72e11 Signed-off-by: Shawn Lin --- diff --git a/drivers/mmc/host/sdhci-of-arasan.c b/drivers/mmc/host/sdhci-of-arasan.c index 4bed0adfca99..a345b3b6b1e1 100644 --- a/drivers/mmc/host/sdhci-of-arasan.c +++ b/drivers/mmc/host/sdhci-of-arasan.c @@ -281,6 +281,8 @@ static int sdhci_arasan_probe(struct platform_device *pdev) if (ret) goto err_add_host; + device_init_wakeup(&pdev->dev, 1); + return 0; err_add_host: diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index ae1dff1db905..6ffff1651438 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -2715,7 +2715,6 @@ int sdhci_suspend_host(struct sdhci_host *host) free_irq(host->irq, host); } else { sdhci_enable_irq_wakeups(host); - enable_irq_wake(host->irq); } return 0; } @@ -2751,7 +2750,6 @@ int sdhci_resume_host(struct sdhci_host *host) return ret; } else { sdhci_disable_irq_wakeups(host); - disable_irq_wake(host->irq); } sdhci_enable_card_detection(host);