OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eae343c
)
mmc: core: do not retry CMD6 in __mmc_switch()
author
Chaotian Jing
<chaotian.jing@mediatek.com>
Fri, 15 Feb 2019 05:59:34 +0000
(13:59 +0800)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Thu, 28 Feb 2019 08:16:12 +0000
(09:16 +0100)
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>
drivers/mmc/core/mmc_ops.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/core/mmc_ops.c
b/drivers/mmc/core/mmc_ops.c
index
9054329
..
c5208fb
100644
(file)
--- a/
drivers/mmc/core/mmc_ops.c
+++ b/
drivers/mmc/core/mmc_ops.c
@@
-562,7
+562,7
@@
int __mmc_switch(struct mmc_card *card, u8 set, u8 index, u8 value,
if (index == EXT_CSD_SANITIZE_START)
cmd.sanitize_busy = true;
- err = mmc_wait_for_cmd(host, &cmd,
MMC_CMD_RETRIES
);
+ err = mmc_wait_for_cmd(host, &cmd,
0
);
if (err)
goto out;