mmc: core: Let eMMC sanitize not retry in case of timeout/failure
authorBean Huo <beanhuo@micron.com>
Wed, 14 Apr 2021 21:22:36 +0000 (23:22 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 15 Apr 2021 11:43:46 +0000 (13:43 +0200)
commit5b96247c68d891ffdfd103315d04989e7feaa4ed
tree8d4cf05e0094e4800f4091aa6c2e50965e5154d2
parent5e52a168be3775c06cce279b03d156efbad5478b
mmc: core: Let eMMC sanitize not retry in case of timeout/failure

Not all commands need to be retried in case of a timeout/failure. This is
the case for the eMMC sanitize command, for example, which is issued
through the ioctl interface. More precisely, in case of timeout, retrying
could make the user wait for a very long time as each retry loop could last
for a couple of minutes.

Therefore, let's not use retries for the eMMC sanitize command.

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