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:
Shawn Lin 2017-03-30 09:30:50 +08:00 committed by Huang, Tao
parent cccd331ae7
commit 3964634a6b

View File

@ -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",