aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorw12.lee <w12.lee@samsung.com>2010-09-27 21:56:47 -0700
committerArve Hjønnevåg <arve@android.com>2011-11-17 17:46:43 -0800
commit908618f2df645bf64d5e6f1045810399fc1f1887 (patch)
tree953aa5af63977d2af02d79413c97edd528eb0f4a /drivers/mmc
parent6d71a39521a58fef6e510234c82406ce420d2d61 (diff)
downloadkernel_samsung_aries-908618f2df645bf64d5e6f1045810399fc1f1887.zip
kernel_samsung_aries-908618f2df645bf64d5e6f1045810399fc1f1887.tar.gz
kernel_samsung_aries-908618f2df645bf64d5e6f1045810399fc1f1887.tar.bz2
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 <w12.lee@samsung.com>
Diffstat (limited to 'drivers/mmc')
-rwxr-xr-x[-rw-r--r--]drivers/mmc/host/sdhci-s3c.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci-s3c.c b/drivers/mmc/host/sdhci-s3c.c
index aeeb5ec..b5c74a8 100644..100755
--- a/drivers/mmc/host/sdhci-s3c.c
+++ b/drivers/mmc/host/sdhci-s3c.c
@@ -21,6 +21,7 @@
#include <linux/gpio.h>
#include <linux/mmc/host.h>
+#include <linux/mmc/card.h>
#include <plat/sdhci.h>
#include <plat/regs-sdhci.h>
@@ -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;
}