]> git.baikalelectronics.ru Git - uboot.git/commit
mmc: Add some helper functions for retrying on error
authorSean Anderson <seanga2@gmail.com>
Sat, 17 Oct 2020 12:36:27 +0000 (08:36 -0400)
committerPeng Fan <peng.fan@nxp.com>
Sat, 28 Nov 2020 02:39:44 +0000 (10:39 +0800)
commit6d38198dffa13d3d6db1ca86f3a74fa6b236af83
treeaf1a9e9cfbb06107a215bb05151f44d7c618c62e
parentc4df504a85d84a917a8885eed752d61243f4b5ba
mmc: Add some helper functions for retrying on error

All of the existing quirks add retries to various calls of mmc_send_cmd.
mmc_send_cmd_quirks is a helper function to do this retrying behavior. It
checks if quirks mode is enabled, and if a specific quirk is activated it
retries on error.

This also adds mmc_send_cmd_retry, which retries on error every time
(instead of if a quirk is activated).

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/mmc.c