aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci.c
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2011-12-27 08:48:42 -0500
committerChris Ball <cjb@laptop.org>2012-01-11 23:58:47 -0500
commitc79396c191bc19703df6eb6bbd0f673ed0df6c9d (patch)
tree04f2590605e26467d384e907b767db8bf2390bde /drivers/mmc/host/sdhci.c
parentceb6143b2df81c8a554bd5de898087926568cc51 (diff)
mmc: sdhci: prevent card detection activity for non-removable cards
Do not enable card detection interrupts for non-removable cards. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/sdhci.c')
-rw-r--r--drivers/mmc/host/sdhci.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index 6a35d0368117..e6c6cd6e95f2 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -146,10 +146,9 @@ static void sdhci_set_card_detection(struct sdhci_host *host, bool enable)
146{ 146{
147 u32 present, irqs; 147 u32 present, irqs;
148 148
149 if (host->quirks & SDHCI_QUIRK_BROKEN_CARD_DETECTION) 149 if ((host->quirks & SDHCI_QUIRK_BROKEN_CARD_DETECTION) ||
150 return; 150 (host->quirks2 & SDHCI_QUIRK2_OWN_CARD_DETECTION) ||
151 151 !mmc_card_is_removable(host->mmc))
152 if (host->quirks2 & SDHCI_QUIRK2_OWN_CARD_DETECTION)
153 return; 152 return;
154 153
155 present = sdhci_readl(host, SDHCI_PRESENT_STATE) & 154 present = sdhci_readl(host, SDHCI_PRESENT_STATE) &