]> git.baikalelectronics.ru Git - uboot.git/commit
mmc: add additional quirk for APP_CMD retry
authorJoel Johnson <mrjoel@lixil.net>
Sat, 11 Jan 2020 16:08:14 +0000 (09:08 -0700)
committerPeng Fan <peng.fan@nxp.com>
Thu, 16 Jan 2020 05:21:01 +0000 (13:21 +0800)
commit7c65b70270ca87bde80cfc5474076e0b7acff38f
tree9887cc32906dbcd80ab80393aca9502f0014ffc9
parent4c91c997443db745a324dba7439afa83b4fff582
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>
drivers/mmc/mmc.c
include/mmc.h