projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ceb6143
)
mmc: sdhci: prevent card detection activity for non-removable cards
author
Adrian Hunter
<
[email protected]
>
Tue, 27 Dec 2011 13:48:42 +0000
(15:48 +0200)
committer
Chris Ball
<
[email protected]
>
Thu, 12 Jan 2012 04:58:47 +0000
(23:58 -0500)
Do not enable card detection interrupts for non-removable cards.
Signed-off-by: Adrian Hunter <
[email protected]
>
Signed-off-by: Chris Ball <
[email protected]
>
drivers/mmc/host/sdhci.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/sdhci.c
b/drivers/mmc/host/sdhci.c
index 6a35d03681178d5fab96357efc8922f1d10df56e..e6c6cd6e95f2303f8c43515ea2b0c001c5b4c211 100644
(file)
--- 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)
{
u32 present, irqs;
- if (host->quirks & SDHCI_QUIRK_BROKEN_CARD_DETECTION)
- return;
-
- if (host->quirks2 & SDHCI_QUIRK2_OWN_CARD_DETECTION)
+ if ((host->quirks & SDHCI_QUIRK_BROKEN_CARD_DETECTION) ||
+ (host->quirks2 & SDHCI_QUIRK2_OWN_CARD_DETECTION) ||
+ !mmc_card_is_removable(host->mmc))
return;
present = sdhci_readl(host, SDHCI_PRESENT_STATE) &