summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorPavan Kunapuli <pkunapuli@nvidia.com>2011-02-23 20:44:22 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2011-04-26 15:52:11 -0700
commit34cce0da2c7214923062cf6378512b801156d44d (patch)
treed40032622ba870659956823a712112c1947bd4ea /drivers/mmc
parente4056e0f3bfd385af2b028554cbbae0592f8c16d (diff)
sdhci:Set MMC_CAP_NEEDS_POLL if there is no card detection support
Enable polling for the card presence if there is no mechanism for card detection. Original-Change-Id: I7c38a1df61eb94f3555dc87adddff268079cd788 Reviewed-on: http://git-master/r/20585 Tested-by: Pavan Kunapuli <pkunapuli@nvidia.com> Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Tested-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Venkata Nageswara Penumarty <vpenumarty@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Change-Id: I376f3dc38d6f8844ab8847b05b84ceb71f83f7b9
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/sdhci.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index ef2b521a7301..542de652adf0 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -2057,8 +2057,10 @@ int sdhci_add_host(struct sdhci_host *host)
if (host->quirks & SDHCI_QUIRK_FORCE_HIGH_SPEED_MODE)
mmc->caps |= MMC_CAP_FORCE_HS;
- if (host->quirks & SDHCI_QUIRK_BROKEN_CARD_DETECTION)
- mmc->caps |= MMC_CAP_NEEDS_POLL;
+ if (host->quirks & SDHCI_QUIRK_BROKEN_CARD_DETECTION) {
+ if (!host->ops->get_cd)
+ mmc->caps |= MMC_CAP_NEEDS_POLL;
+ }
if (host->quirks & SDHCI_QUIRK_RUNTIME_DISABLE)
mmc->caps |= MMC_CAP_DISABLE;