summaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorFelix Qin <xiaokeqinhealth@126.com>2024-04-29 09:19:55 +0200
committerUlf Hansson <ulf.hansson@linaro.org>2024-05-03 14:28:27 +0200
commitef65b1fdd1f808f8b796182e2a117196de66e941 (patch)
treef6cd0b594d049da74fd001fdd95f3fe27bec8958 /drivers/mmc
parentmmc: core: Convert to use __mmc_poll_for_busy() SD_APP_OP_COND too (diff)
downloadlinux-ef65b1fdd1f808f8b796182e2a117196de66e941.tar.xz
linux-ef65b1fdd1f808f8b796182e2a117196de66e941.zip
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>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/core/sd_ops.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/mmc/core/sd_ops.c b/drivers/mmc/core/sd_ops.c
index 9a777b0fea27..8b9b34286ef3 100644
--- a/drivers/mmc/core/sd_ops.c
+++ b/drivers/mmc/core/sd_ops.c
@@ -19,8 +19,13 @@
#include "sd_ops.h"
#include "mmc_ops.h"
+/*
+ * Extensive testing has shown that some specific SD cards
+ * require an increased command timeout to be successfully
+ * initialized.
+ */
#define SD_APP_OP_COND_PERIOD_US (10 * 1000) /* 10ms */
-#define SD_APP_OP_COND_TIMEOUT_MS 1000 /* 1s */
+#define SD_APP_OP_COND_TIMEOUT_MS 2000 /* 2s */
struct sd_app_op_cond_busy_data {
struct mmc_host *host;