mmc: sdhci-tegra: Add MMC_PM_IGNORE_PM_NOTIFY for builtin device
authorDmitry Shmidt <dimitrysh@google.com>
Thu, 7 Oct 2010 23:11:18 +0000 (16:11 -0700)
committerDmitry Shmidt <dimitrysh@google.com>
Fri, 8 Oct 2010 16:59:22 +0000 (09:59 -0700)
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
drivers/mmc/host/sdhci-tegra.c

index e99cddd74ba25f12467a07d53e98d324c2e38b60..65a671d20e0d153cf803d01387650448034629ff 100644 (file)
@@ -155,7 +155,9 @@ static int __devinit tegra_sdhci_probe(struct platform_device *pdev)
        if (plat->force_hs != 0)
                sdhci->quirks |= SDHCI_QUIRK_FORCE_HIGH_SPEED_MODE;
 
-       sdhci->mmc->pm_caps = MMC_PM_KEEP_POWER;
+       sdhci->mmc->pm_caps = MMC_PM_KEEP_POWER | MMC_PM_IGNORE_PM_NOTIFY;
+       if (plat->mmc_data.built_in)
+               sdhci->mmc->pm_flags = MMC_PM_KEEP_POWER | MMC_PM_IGNORE_PM_NOTIFY;
 
        rc = sdhci_add_host(sdhci);
        if (rc)