diff options
author | Joel Johnson <mrjoel@lixil.net> | 2020-01-11 09:08:14 -0700 |
---|---|---|
committer | Peng Fan <peng.fan@nxp.com> | 2020-01-16 13:21:01 +0800 |
commit | d4a5fa314db9e18535a8672919ac235daf5e20b9 (patch) | |
tree | 9887cc32906dbcd80ab80393aca9502f0014ffc9 /include/mmc.h | |
parent | f1bce084264f52caca80ca56815d6c4b4c5d5935 (diff) | |
download | u-boot-d4a5fa314db9e18535a8672919ac235daf5e20b9.tar.gz |
mmc: add additional quirk for APP_CMD retry
It was observed (on ClearFog Base) that sending MMC APP_CMD returned
an error on the first attempt. The issue appears to be timing related
since even inserting a puts() short debug entry before the execution
added sufficient delay to receive success on first attempt.
Follow the existing quirks pattern to retry if initial issuance
failed so as to not introduce any delay unless needed.
Signed-off-by: Joel Johnson <mrjoel@lixil.net>
Diffstat (limited to 'include/mmc.h')
-rw-r--r-- | include/mmc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mmc.h b/include/mmc.h index 1a9efe4c38..b5cb514f57 100644 --- a/include/mmc.h +++ b/include/mmc.h @@ -331,6 +331,7 @@ static inline bool mmc_is_tuning_cmd(uint cmdidx) #define MMC_QUIRK_RETRY_SEND_CID BIT(0) #define MMC_QUIRK_RETRY_SET_BLOCKLEN BIT(1) +#define MMC_QUIRK_RETRY_APP_CMD BIT(2) enum mmc_voltage { MMC_SIGNAL_VOLTAGE_000 = 0, |