summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorDong Aisheng <b29396@freescale.com>2013-09-05 18:27:18 +0800
committerDong Aisheng <b29396@freescale.com>2013-09-06 16:48:20 +0800
commit35183ff1d51976c74580e4bcabc3cf7e2c305d2b (patch)
tree6c21cdda2c14a142d972db2de12ce92589275315 /drivers
parentde36e6374fd1512b5b196ad579db2eb7d5ed923a (diff)
ENGR00278504-1 mmc: sdhci: add quirk for broken auto cmd23
The auto cmd23 function on some platforms may not work well, add a quirk to allow them to work without auto cmd23. Signed-off-by: Dong Aisheng <b29396@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/host/sdhci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index a69f773710b6..ce8db607a85b 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -2901,6 +2901,7 @@ int sdhci_add_host(struct sdhci_host *host)
/* Auto-CMD23 stuff only works in ADMA or PIO. */
if ((host->version >= SDHCI_SPEC_300) &&
+ !(host->quirks2 & SDHCI_QUIRK2_BROKEN_AUTO_CMD23) &&
((host->flags & SDHCI_USE_ADMA) ||
!(host->flags & SDHCI_USE_SDMA))) {
host->flags |= SDHCI_AUTO_CMD23;