From 908618f2df645bf64d5e6f1045810399fc1f1887 Mon Sep 17 00:00:00 2001 From: "w12.lee" Date: Mon, 27 Sep 2010 21:56:47 -0700 Subject: S5PC11X: MMC: set MMC_PM_KEEP_POWER flag for SDIO device. Set MMC_PM_KEEP_POWER flag for SDIO device before suspending. So, SDIO device can restore its informations on resume. It can resolve wlan resuming issue. Change-Id: Ic61a8cfb78a15b774bde6f68fd9adcaa43041b40 Signed-off-by: w12.lee --- drivers/mmc/host/sdhci-s3c.c | 6 ++++++ 1 file changed, 6 insertions(+) mode change 100644 => 100755 drivers/mmc/host/sdhci-s3c.c (limited to 'drivers/mmc') diff --git a/drivers/mmc/host/sdhci-s3c.c b/drivers/mmc/host/sdhci-s3c.c old mode 100644 new mode 100755 index aeeb5ec..b5c74a8 --- a/drivers/mmc/host/sdhci-s3c.c +++ b/drivers/mmc/host/sdhci-s3c.c @@ -21,6 +21,7 @@ #include #include +#include #include #include @@ -664,6 +665,11 @@ static int sdhci_s3c_suspend(struct platform_device *dev, pm_message_t pm) { struct sdhci_host *host = platform_get_drvdata(dev); + struct mmc_host *mmc = host->mmc; + + if (mmc->card && (mmc->card->type == MMC_TYPE_SDIO)) + mmc->pm_flags |= MMC_PM_KEEP_POWER; + sdhci_suspend_host(host, pm); return 0; } -- cgit v1.1