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

mmc: core: do not retry CMD6 in __mmc_switch()

the response type of CMD6 is R1B, when the first CMD6 gets response
CRC error, do retry may get timeout error due to card may still in
busy state, which cause this retry make no sense.

Signed-off-by: Chaotian Jing <chaotian.jing@mediatek.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Chaotian Jing and committed by
Ulf Hansson
3a0681c7 eae343c2

+1 -1
+1 -1
drivers/mmc/core/mmc_ops.c
··· 562 562 if (index == EXT_CSD_SANITIZE_START) 563 563 cmd.sanitize_busy = true; 564 564 565 - err = mmc_wait_for_cmd(host, &cmd, MMC_CMD_RETRIES); 565 + err = mmc_wait_for_cmd(host, &cmd, 0); 566 566 if (err) 567 567 goto out; 568 568