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 <[email protected]> Acked-by: Avri Altman <[email protected]> Reviewed-by: Dragan Simic <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent 3ae4f26 commit ef65b1f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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)