sdhci: tegra: Set non-removable caps and pm flags
Pavan Kunapuli [Tue, 13 Sep 2011 16:35:19 +0000 (21:35 +0530)]
If the device is built in, set MMC_CAP_NONREMOVABLE
and set MMC_PM_IGNORE_PM_NOTIFY in pm_flags.

Bug 871369

Change-Id: Ia74b8bd8d605a77c939a770fe3e32e0980cdd230
Reviewed-on: http://git-master/r/52064
Reviewed-by: Jin Qian <jqian@nvidia.com>
Tested-by: Jin Qian <jqian@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R59215043075bcdf7f6bbb1aeb72a2cd8e7cdc883

drivers/mmc/host/sdhci-tegra.c

index 6fa88de..d5bb5a9 100644 (file)
@@ -322,6 +322,10 @@ static int __devinit sdhci_tegra_probe(struct platform_device *pdev)
        if (plat->is_8bit)
                host->mmc->caps |= MMC_CAP_8_BIT_DATA;
 
+       if (plat->mmc_data.built_in) {
+               host->mmc->caps |= MMC_CAP_NONREMOVABLE;
+       }
+
        rc = sdhci_add_host(host);
        if (rc)
                goto err_add_host;