aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host
diff options
context:
space:
mode:
authorDong Aisheng <b29396@freescale.com>2013-09-05 06:27:18 -0400
committerNitin Garg <nitin.garg@freescale.com>2014-04-16 09:05:31 -0400
commit1255b1ed60439fa3e3001e9f96905a7a5e9be817 (patch)
tree85ae0270002da1bd54009adfe7370f47b8bfba3b /drivers/mmc/host
parent9f789c7c444b25d5c83b8d37ffe33236be51534c (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/mmc/host')
-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)
2901 2901
2902 /* Auto-CMD23 stuff only works in ADMA or PIO. */ 2902 /* Auto-CMD23 stuff only works in ADMA or PIO. */
2903 if ((host->version >= SDHCI_SPEC_300) && 2903 if ((host->version >= SDHCI_SPEC_300) &&
2904 !(host->quirks2 & SDHCI_QUIRK2_BROKEN_AUTO_CMD23) &&
2904 ((host->flags & SDHCI_USE_ADMA) || 2905 ((host->flags & SDHCI_USE_ADMA) ||
2905 !(host->flags & SDHCI_USE_SDMA))) { 2906 !(host->flags & SDHCI_USE_SDMA))) {
2906 host->flags |= SDHCI_AUTO_CMD23; 2907 host->flags |= SDHCI_AUTO_CMD23;