summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDong Aisheng <b29396@freescale.com>2015-04-09 16:23:24 +0800
committerguoyin.chen <guoyin.chen@freescale.com>2015-05-08 17:26:21 +0800
commitd890d90ba41ceff46c61a38b75b0a86d78385839 (patch)
treeee08dd5255321df10053a2a7bca9bf21d00e4c31
parent64af464020aa9ffe9ba607fc3b6a106668e85a5d (diff)
MLK-10629-4 mmc: sdhci: remove MMC_CAP_NEEDS_POLL
This will cause meaningless CPU overhead by polling the card at backgroud if the CD is broken. Most board does not intend to use this function, so remove it. Platform driver could add it for test if needed. Signed-off-by: Dong Aisheng <b29396@freescale.com> (cherry picked from commit 9418183f29da8478d7103944f97a24946b7849d4)
-rw-r--r--drivers/mmc/host/sdhci.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index 3f2649bba730..f304ef501ea3 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -3093,10 +3093,6 @@ int sdhci_add_host(struct sdhci_host *host)
if (caps[0] & SDHCI_CAN_DO_HISPD)
mmc->caps |= MMC_CAP_SD_HIGHSPEED | MMC_CAP_MMC_HIGHSPEED;
- if ((host->quirks & SDHCI_QUIRK_BROKEN_CARD_DETECTION) &&
- !(host->mmc->caps & MMC_CAP_NONREMOVABLE))
- mmc->caps |= MMC_CAP_NEEDS_POLL;
-
/* If vqmmc regulator and no 1.8V signalling, then there's no UHS */
host->vqmmc = regulator_get_optional(mmc_dev(mmc), "vqmmc");
if (IS_ERR_OR_NULL(host->vqmmc)) {