aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mmc/host/sdhci.c')
-rw-r--r--drivers/mmc/host/sdhci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index f845fd6a64ae..58d5436ff649 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -2494,9 +2494,9 @@ int sdhci_add_host(struct sdhci_host *host)
2494 host->flags |= SDHCI_AUTO_CMD12; 2494 host->flags |= SDHCI_AUTO_CMD12;
2495 2495
2496 /* Auto-CMD23 stuff only works in ADMA or PIO. */ 2496 /* Auto-CMD23 stuff only works in ADMA or PIO. */
2497 if ((host->version == SDHCI_SPEC_300) && 2497 if ((host->version >= SDHCI_SPEC_300) &&
2498 ((host->flags & SDHCI_USE_ADMA) || 2498 ((host->flags & SDHCI_USE_ADMA) ||
2499 !(host->flags & SDHCI_REQ_USE_DMA))) { 2499 !(host->flags & SDHCI_USE_SDMA))) {
2500 host->flags |= SDHCI_AUTO_CMD23; 2500 host->flags |= SDHCI_AUTO_CMD23;
2501 DBG("%s: Auto-CMD23 available\n", mmc_hostname(mmc)); 2501 DBG("%s: Auto-CMD23 available\n", mmc_hostname(mmc));
2502 } else { 2502 } else {