mmc: tegra: enabling MMC_PM_KEEP_POWER flag for built_in devices
naveenk [Tue, 14 Feb 2012 06:51:15 +0000 (11:51 +0530)]
During resume mmc_power_up is not necessary for eMMC

Bug 932606

Change-Id: I6dd6e7c4f5582ecca8b9c459e3537b05cce69e69
Signed-off-by: naveen kumar arepalli<naveenk@nvidia.com>
Reviewed-on: http://git-master/r/83709
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

drivers/mmc/host/sdhci-tegra.c

index 95c8cad..4cc5b2c 100644 (file)
@@ -815,7 +815,7 @@ static int __devinit sdhci_tegra_probe(struct platform_device *pdev)
        host->mmc->pm_caps |= MMC_PM_KEEP_POWER | MMC_PM_IGNORE_PM_NOTIFY;
        if (plat->mmc_data.built_in) {
                host->mmc->caps |= MMC_CAP_NONREMOVABLE;
-               host->mmc->pm_flags |= MMC_PM_IGNORE_PM_NOTIFY;
+               host->mmc->pm_flags |= MMC_PM_IGNORE_PM_NOTIFY | MMC_PM_KEEP_POWER;
        }
        /* Do not turn OFF embedded sdio cards as it support Wake on Wireless */
        if (plat->mmc_data.embedded_sdio)