mmc: sdhci-tegra: Add MMC_PM_IGNORE_PM_NOTIFY for builtin device
Dmitry Shmidt [Thu, 5 May 2011 18:04:51 +0000 (11:04 -0700)]
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

Rebase-Id: Rc29be578dd6cd3b02ecf72a05fcd6552fbe31fb9

drivers/mmc/host/sdhci-tegra.c

index 2818a05..e624b90 100644 (file)
@@ -633,8 +633,10 @@ static int __devinit sdhci_tegra_probe(struct platform_device *pdev)
                host->mmc->caps |= MMC_CAP_8_BIT_DATA;
        host->mmc->caps |= MMC_CAP_SDIO_IRQ;
 
+       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;
        }
        /* Do not turn OFF embedded sdio cards as it support Wake on Wireless */
        if (plat->mmc_data.embedded_sdio)