mmc: core: Convert to use __mmc_poll_for_busy() SD_APP_OP_COND too
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 25 Apr 2024 13:30:34 +0000 (15:30 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 3 May 2024 12:27:55 +0000 (14:27 +0200)
commit3ae4f2657baac88d8b78d26402f5ee76924cb47f
tree7ccff272edb5a5a2662d213c0fec4426917cf6ed
parente38063b94324bc1409a29d699c73938c3d008126
mmc: core: Convert to use __mmc_poll_for_busy() SD_APP_OP_COND too

Similar to what has already been changed for eMMC and the MMC_SEND_OP_COND
(CMD1), let's convert the SD_APP_OP_COND (ACMD41) for SD cards to use the
common __mmc_poll_for_busy() too.

This change means the initial delay period, that starts as 10ms will now
increase for every loop when being busy. The total accepted timeout for
being busy is 1s, which is according to the SD spec.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Felix Qin <xiaokeqinhealth@126.com>
Reviewed-by: Dragan Simic <dsimic@manjaro.org>
Link: https://lore.kernel.org/r/20240425133034.79599-1-ulf.hansson@linaro.org
drivers/mmc/core/sd_ops.c