From: Dong Aisheng Date: Thu, 9 Apr 2015 08:23:24 +0000 (+0800) Subject: MLK-10629-4 mmc: sdhci: remove MMC_CAP_NEEDS_POLL X-Git-Tag: C0P2-H0.0--20200415~4076 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=8444d8bbfe8dff8f37072e2ad20fe9b50e8cddc5;p=linux.git 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 Conflicts: drivers/mmc/host/sdhci.c --- diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 3ea3e9deb896..61d561de08b1 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -3319,11 +3319,6 @@ int sdhci_setup_host(struct sdhci_host *host) if (host->caps & SDHCI_CAN_DO_HISPD) mmc->caps |= MMC_CAP_SD_HIGHSPEED | MMC_CAP_MMC_HIGHSPEED; - if ((host->quirks & SDHCI_QUIRK_BROKEN_CARD_DETECTION) && - mmc_card_is_removable(mmc) && - mmc_gpio_get_cd(host->mmc) < 0) - mmc->caps |= MMC_CAP_NEEDS_POLL; - /* If vqmmc regulator and no 1.8V signalling, then there's no UHS */ if (!IS_ERR(mmc->supply.vqmmc)) { ret = regulator_enable(mmc->supply.vqmmc);