diff options
author | Scott Branden <sbranden@broadcom.com> | 2015-02-09 19:06:28 -0500 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2015-03-23 09:13:39 -0400 |
commit | 3bfa6f030a01870a43e2a0652437a20b59bc3412 (patch) | |
tree | 1a528b4df9a087251c8058a5ae9af4ddd3b1fb4e /drivers/mmc | |
parent | eeed7026b4b2840dcc771c3a23783425b50bd6ef (diff) |
mmc: sdhci: add quirk for ACMD23 broken
Add quirk to handle broken auto-CMD23.
Some controllers do not respond after the first auto-CMD23 is issued.
This allows CMD23 to still work (mandatory for the faster UHS-I mode)
rather than disabling CMD23 entirely via SDHCI_QUIRK2_HOST_NO_CMD23.
Signed-off by: Corneliu Doban <cdoban@broadcom.com>
Signed-off-by: Scott Branden <sbranden@broadcom.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/sdhci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 0ad412a4876f..5cf35e5ae267 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c | |||
@@ -3164,7 +3164,8 @@ int sdhci_add_host(struct sdhci_host *host) | |||
3164 | /* Auto-CMD23 stuff only works in ADMA or PIO. */ | 3164 | /* Auto-CMD23 stuff only works in ADMA or PIO. */ |
3165 | if ((host->version >= SDHCI_SPEC_300) && | 3165 | if ((host->version >= SDHCI_SPEC_300) && |
3166 | ((host->flags & SDHCI_USE_ADMA) || | 3166 | ((host->flags & SDHCI_USE_ADMA) || |
3167 | !(host->flags & SDHCI_USE_SDMA))) { | 3167 | !(host->flags & SDHCI_USE_SDMA)) && |
3168 | !(host->quirks2 & SDHCI_QUIRK2_ACMD23_BROKEN)) { | ||
3168 | host->flags |= SDHCI_AUTO_CMD23; | 3169 | host->flags |= SDHCI_AUTO_CMD23; |
3169 | DBG("%s: Auto-CMD23 available\n", mmc_hostname(mmc)); | 3170 | DBG("%s: Auto-CMD23 available\n", mmc_hostname(mmc)); |
3170 | } else { | 3171 | } else { |