]> git.ipfire.org Git - thirdparty/linux.git/commit
mmc: mmci: Retry the busy start condition
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 16 Jun 2023 20:42:24 +0000 (22:42 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 19 Jun 2023 11:14:26 +0000 (13:14 +0200)
commit7892497f1f2d38b786cd80980c9f340988f662b5
treeba0c753e4cd2ca2af9a8517b630a4af0f73ae999
parent7be5ac5f7a4890422920d6d91f94fff5d114d076
mmc: mmci: Retry the busy start condition

This makes the ux500 ->busy_complete() callback re-read
the status register 10 times while waiting for the busy
signal to assert in the status register.

If this does not happen, we bail out regarding the
command completed already, i.e. before we managed to
start to check the busy status.

There is a comment in the code about this, let's just
implement it to be certain that we can catch this glitch
if it happens.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20230405-pl180-busydetect-fix-v7-6-69a7164f2a61@linaro.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mmci.c