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)
commitd4a5fa314db9e18535a8672919ac235daf5e20b9
tree9887cc32906dbcd80ab80393aca9502f0014ffc9
parentf1bce084264f52caca80ca56815d6c4b4c5d5935
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