summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorDong Aisheng <b29396@freescale.com>2015-04-09 16:23:24 +0800
committerNitin Garg <nitin.garg@nxp.com>2016-01-14 11:02:09 -0600
commitfbe95c4bfb6c2b29f666b5c1d18c5ec8516297c7 (patch)
treebf7d644854634ab125196f134bdbb711bd743915 /drivers/mmc
parent836270a9a7f1d360a73bc2962287b0bb88add1a4 (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> Conflicts: drivers/mmc/host/sdhci.c
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/sdhci.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index f9f65945da5f..e9a2d2fb5ac2 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -3135,11 +3135,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) &&
- !(mmc->caps & MMC_CAP_NONREMOVABLE) &&
- IS_ERR_VALUE(mmc_gpio_get_cd(host->mmc)))
- mmc->caps |= MMC_CAP_NEEDS_POLL;
-
/* If there are external regulators, get them */
if (mmc_regulator_get_supply(mmc) == -EPROBE_DEFER)
return -EPROBE_DEFER;