Skip to content

Commit 3a0681c

Browse files
ChaotianJingstorulf
authored andcommitted
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 <[email protected]> Signed-off-by: Ulf Hansson <[email protected]>
1 parent eae343c commit 3a0681c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/core/mmc_ops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ int __mmc_switch(struct mmc_card *card, u8 set, u8 index, u8 value,
562562
if (index == EXT_CSD_SANITIZE_START)
563563
cmd.sanitize_busy = true;
564564

565-
err = mmc_wait_for_cmd(host, &cmd, MMC_CMD_RETRIES);
565+
err = mmc_wait_for_cmd(host, &cmd, 0);
566566
if (err)
567567
goto out;
568568

0 commit comments

Comments
 (0)