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:
cccd331
)
mmc: core: use default generic cmd6 timeout for flushing cache
author
Shawn Lin
<shawn.lin@rock-chips.com>
Thu, 30 Mar 2017 01:30:50 +0000
(09:30 +0800)
committer
Huang, Tao
<huangtao@rock-chips.com>
Thu, 30 Mar 2017 06:43:18 +0000
(14:43 +0800)
We need a luxury timeout once needing some extra time to
wait for flushing cache.
Change-Id: I8cd4015f30fa45cacdb984f0461b1ad8ee6cba7d
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 31fc5362f99ab358e79dde0d6be02f7102610e89..a68f956548e4836480cbb019517600bb60c92479 100644
(file)
--- a/
drivers/mmc/core/core.c
+++ b/
drivers/mmc/core/core.c
@@
-2806,7
+2806,7
@@
int mmc_flush_cache(struct mmc_card *card)
(card->ext_csd.cache_size > 0) &&
(card->ext_csd.cache_ctrl & 1)) {
err = __mmc_switch(card, EXT_CSD_CMD_SET_NORMAL,
- EXT_CSD_FLUSH_CACHE, 1,
1
,
+ EXT_CSD_FLUSH_CACHE, 1,
0
,
true, false, false);
if (err)
pr_err("%s: cache flush error %d\n",