Commit ef65b1fd authored by Felix Qin's avatar Felix Qin Committed by Ulf Hansson

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: default avatarFelix Qin <xiaokeqinhealth@126.com>
Acked-by: default avatarAvri Altman <avri.altman@wdc.com>
Reviewed-by: default avatarDragan Simic <dsimic@manjaro.org>
Link: https://lore.kernel.org/r/20240429071955.163282-1-xiaokeqinhealth@126.comSigned-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 3ae4f265
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment