]> git.sur5r.net Git - u-boot/commit
mmc: Retry some MMC cmds on failure
authorKishon Vijay Abraham I <kishon@ti.com>
Thu, 21 Sep 2017 14:30:10 +0000 (16:30 +0200)
committerJaehoon Chung <jh80.chung@samsung.com>
Fri, 12 Jan 2018 09:11:04 +0000 (18:11 +0900)
commit83dc42271f79202b746bc9614817b41a6911c88f
tree493393ae4d5d9b0cd3997d19f647f7a377a4ca12
parent01298da31d92ecc46cf9130d8cff68bc51698197
mmc: Retry some MMC cmds on failure

With certain SD cards like Kingston 8GB/16GB UHS card, it is seen that
MMC_CMD_ALL_SEND_CID cmd fails on first attempt, but succeeds
subsequently. Therefore, retry MMC_CMD_ALL_SEND_CID cmd a few time
as done in Linux kernel.
Similarly, it is seen that MMC_CMD_SET_BLOCKLEN may fail on first
attempt, therefore retry this cmd a few times as done in kernel.

To make it clear that those are optionnal workarounds, a new Kconfig
option 'MMC_QUIRKS' is added (enabled by default).

Signed-off-by: Vignesh R <vigneshr@ti.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
drivers/mmc/Kconfig
drivers/mmc/mmc.c
include/mmc.h