OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mmc: sdhci: refine non-removable card checking for card detection
[uclinux-h8/linux.git]
/
drivers
/
mmc
/
host
/
sdhci.c
diff --git
a/drivers/mmc/host/sdhci.c
b/drivers/mmc/host/sdhci.c
index
9aa77f3
..
ccefdeb
100644
(file)
--- a/
drivers/mmc/host/sdhci.c
+++ b/
drivers/mmc/host/sdhci.c
@@
-147,7
+147,7
@@
static void sdhci_set_card_detection(struct sdhci_host *host, bool enable)
u32 present, irqs;
if ((host->quirks & SDHCI_QUIRK_BROKEN_CARD_DETECTION) ||
-
!mmc_card_is_removable(host->mmc
))
+
(host->mmc->caps & MMC_CAP_NONREMOVABLE
))
return;
present = sdhci_readl(host, SDHCI_PRESENT_STATE) &