projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eaa5cd4
)
mmc: core: limit tuning block timeout
author
Shawn Lin
<shawn.lin@rock-chips.com>
Mon, 8 Jun 2015 09:52:06 +0000
(17:52 +0800)
committer
Shawn Lin
<shawn.lin@rock-chips.com>
Tue, 23 Jun 2015 01:36:42 +0000
(09:36 +0800)
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
drivers/mmc/core/core.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/core/core.c
b/drivers/mmc/core/core.c
index 21233c15898751e2087e806ce292219475e8c251..33bdf60c8096a38aaf48743a70e8d9d7ea243f4d 100755
(executable)
--- a/
drivers/mmc/core/core.c
+++ b/
drivers/mmc/core/core.c
@@
-474,6
+474,9
@@
static void mmc_get_req_timeout(struct mmc_request *mrq, u32 *timeout)
if ((mrq->cmd->opcode == SD_IO_RW_DIRECT) ||
(mrq->cmd->opcode == SD_IO_RW_EXTENDED))
*timeout = 8000;
+ else if ((mrq->cmd->opcode == MMC_SEND_TUNING_BLOCK_HS200) ||
+ (mrq->cmd->opcode == MMC_SEND_TUNING_BLOCK))
+ *timeout = 100;
}
static void mmc_wait_for_req_done(struct mmc_host *host,