mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
mmc: core: use default generic cmd6 timeout for flushing cache
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>
This commit is contained in:
parent
cccd331ae7
commit
3964634a6b
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user