mmc: core: Add a retries parameter to __mmc_switch function
authorBean Huo <beanhuo@micron.com>
Wed, 14 Apr 2021 21:22:35 +0000 (23:22 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 15 Apr 2021 11:43:17 +0000 (13:43 +0200)
commit5e52a168be3775c06cce279b03d156efbad5478b
treea044a8fc9bbd591ba0a4219b7fe96eb49e043abd
parent4b00ed3c5072751fc46677970f4d84683b555969
mmc: core: Add a retries parameter to __mmc_switch function

Add command retries parameter to __mmc_switch(), let caller
pass retries according to the caller's condition.

Signed-off-by: Bean Huo <beanhuo@micron.com>
Link: https://lore.kernel.org/r/20210414212236.346813-2-huobean@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/mmc.c
drivers/mmc/core/mmc_ops.c
drivers/mmc/core/mmc_ops.h