mmc: core: Specify timeouts for BKOPS and CACHE_FLUSH for eMMC
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 17 May 2022 18:09:09 +0000 (11:09 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 May 2022 07:14:33 +0000 (09:14 +0200)
commitf10260f359925f010745c6b7d2c38f9d694b0803
tree100a885bbcf4eebd9dfe60b89854847cd4b1d5cf
parent1e93f939927def64a6d091f9cd24681322b53b37
mmc: core: Specify timeouts for BKOPS and CACHE_FLUSH for eMMC

commit 24ed3bd01d6a844fd5e8a75f48d0a3d10ed71bf9 upstream

The timeout values used while waiting for a CMD6 for BKOPS or a CACHE_FLUSH
to complete, are not defined by the eMMC spec. However, a timeout of 10
minutes as is currently being used, is just silly for both of these cases.
Instead, let's specify more reasonable timeouts, 120s for BKOPS and 30s for
CACHE_FLUSH.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/r/20200122142747.5690-2-ulf.hansson@linaro.org
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/core/mmc_ops.c