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 at least thrice
as done in Linux kernel.
Similarly, it is seen that MMC_CMD_SET_BLOCKLEN may fail on first
attempt, therefore retry this cmd five times as done in kernel.
Signed-off-by: Vignesh R <email@example.com>
Signed-off-by: Kishon Vijay Abraham I <firstname.lastname@example.org>
Signed-off-by: Jean-Jacques Hiblot <email@example.com>
Reviewed-by: Simon Glass <firstname.lastname@example.org>
(cherry picked from commit