summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Sumrall <ksumrall@android.com>2011-08-17 21:12:55 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 00:47:52 -0700
commit5c862fc88dd59fa1e6f7bc1160408268e0c559e4 (patch)
treebd5f888345beeae13fb551eb6e5db2d8505e0cd9
parent940fe4ce8a6b137cddb85d50aa0d08729c3dbdaf (diff)
mmc: sdhci: Enable MMC_CAP_ERASE for the tegra sdhci controller
Even if the card/emmc chip claims to support the Erase command, the command won't work unless the controller is also configured to support it. Change-Id: Ic45fcd88dd3b3381677d907d31fa3a56bb697107 Signed-off-by: Ken Sumrall <ksumrall@android.com> Rebase-Id: Ra7472026260294afa7d63335e7db29cadc9f1f9e
-rw-r--r--drivers/mmc/host/sdhci-tegra.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c
index 68649472aa0c..b04d48b4bdc2 100644
--- a/drivers/mmc/host/sdhci-tegra.c
+++ b/drivers/mmc/host/sdhci-tegra.c
@@ -423,6 +423,7 @@ static int sdhci_tegra_probe(struct platform_device *pdev)
host->mmc->pm_caps = plat->pm_flags;
+ host->mmc->caps |= MMC_CAP_ERASE;
if (plat->is_8bit)
host->mmc->caps |= MMC_CAP_8_BIT_DATA;