Revert "mmc: tegra: enabling MMC_PM_KEEP_POWER flag for built_in devices"
Om Prakash Singh [Wed, 22 Feb 2012 05:55:17 +0000 (10:55 +0530)]
This reverts commit caa6566d4fb8539d09276c1bcb818444af675624.

MMC_PM_KEEP_POWER should be used only for sdio as power-on/off code is
implemented only for sdio.

This may also create regression in power.

Bug 938011
Bug 943131

Change-Id: I41a29acb3dd6f3396c97ab78f9704f9b39359675
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/85213
Reviewed-by: Om Prakash Singh <omp@nvidia.com>
Tested-by: Om Prakash Singh <omp@nvidia.com>

drivers/mmc/host/sdhci-tegra.c

index 54ddc09..6d61aae 100644 (file)
@@ -1057,7 +1057,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 | MMC_PM_KEEP_POWER;
+               host->mmc->pm_flags |= MMC_PM_IGNORE_PM_NOTIFY;
        }
        /* Do not turn OFF embedded sdio cards as it support Wake on Wireless */
        if (plat->mmc_data.embedded_sdio)