Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: core: Increase the timeout period of the ACMD41 command

Extensive testing has shown that some specific SD cards require an
increased command timeout to be successfully initialized.

More info:
Platform: Rockchip SoC + DW Multimedia host Controller
SD card: Xvv microSD CMH34A17TMA12 (Made in Korea)
Note: The SD card is custom-made by the customer in collaboration
with the wafer foundry.

Signed-off-by: Felix Qin <xiaokeqinhealth@126.com>
Acked-by: Avri Altman <avri.altman@wdc.com>
Reviewed-by: Dragan Simic <dsimic@manjaro.org>
Link: https://lore.kernel.org/r/20240429071955.163282-1-xiaokeqinhealth@126.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Felix Qin and committed by
Ulf Hansson
ef65b1fd 3ae4f265

+6 -1
+6 -1
drivers/mmc/core/sd_ops.c
··· 19 19 #include "sd_ops.h" 20 20 #include "mmc_ops.h" 21 21 22 + /* 23 + * Extensive testing has shown that some specific SD cards 24 + * require an increased command timeout to be successfully 25 + * initialized. 26 + */ 22 27 #define SD_APP_OP_COND_PERIOD_US (10 * 1000) /* 10ms */ 23 - #define SD_APP_OP_COND_TIMEOUT_MS 1000 /* 1s */ 28 + #define SD_APP_OP_COND_TIMEOUT_MS 2000 /* 2s */ 24 29 25 30 struct sd_app_op_cond_busy_data { 26 31 struct mmc_host *host;