mmc: core: Align to common busy polling behaviour for mmc ioctls
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 13 Feb 2023 13:37:07 +0000 (14:37 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 15 Feb 2023 12:24:03 +0000 (13:24 +0100)
commit51f5b3056790bc0518e49587996f1e6f3058cca9
tree15f2b2cfb4bc589920856b6b2fe57a13feecc1c7
parentcb7f0901713930896362c2085a04a840b8ddb572
mmc: core: Align to common busy polling behaviour for mmc ioctls

Let's align to the common busy polling behaviour for mmc ioctls, by
updating the below two corresponding parts, that comes into play when using
an R1B response for a command.

*) A command with an R1B response should be prepared by calling
mmc_prepare_busy_cmd(), which make us respects the host's busy timeout
constraints.
**) When an R1B response is being used and the host also supports HW busy
detection, we should skip to poll for busy completion.

Suggested-by: Christian Loehle <cloehle@hyperstone.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Christian Loehle <cloehle@hyperstone.com>
Link: https://lore.kernel.org/r/20230213133707.27857-1-ulf.hansson@linaro.org
drivers/mmc/core/block.c
drivers/mmc/core/mmc_ops.c