Skip to content
Commit 1760fdb6 authored by Ulf Hansson's avatar Ulf Hansson
Browse files

mmc: core: Restore (almost) the busy polling for MMC_SEND_OP_COND

Commit 76bfc7cc

 ("mmc: core: adjust polling interval for CMD1"),
significantly decreased the polling period from ~10-12ms into just a couple
of us. The purpose was to decrease the total time spent in the busy polling
loop, but unfortunate it has lead to problems, that causes eMMC cards to
never gets out busy and thus fails to be initialized.

To fix the problem, but also to try to keep some of the new improved
behaviour, let's start by using a polling period of 1-2ms, which then
increases for each loop, according to common polling loop in
__mmc_poll_for_busy().

Reported-by: default avatarJean Rene Dawin <jdawin@math.uni-bielefeld.de>
Reported-by: default avatarH. Nikolaus Schaller <hns@goldelico.com>
Cc: Huijin Park <huijin.park@samsung.com>
Fixes: 76bfc7cc

 ("mmc: core: adjust polling interval for CMD1")
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Tested-by: default avatarJean Rene Dawin <jdawin@math.uni-bielefeld.de>
Tested-by: default avatarH. Nikolaus Schaller <hns@goldelico.com>
Link: https://lore.kernel.org/r/20220304105656.149281-1-ulf.hansson@linaro.org
parent f0d2f153
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment