Skip to content

Commit ef65b1f

Browse files
Felix Qinstorulf
authored andcommitted
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>
1 parent 3ae4f26 commit ef65b1f

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

drivers/mmc/core/sd_ops.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,13 @@
1919
#include "sd_ops.h"
2020
#include "mmc_ops.h"
2121

22+
/*
23+
* Extensive testing has shown that some specific SD cards
24+
* require an increased command timeout to be successfully
25+
* initialized.
26+
*/
2227
#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 */
2429

2530
struct sd_app_op_cond_busy_data {
2631
struct mmc_host *host;

0 commit comments

Comments
 (0)