mmc: core: Add a timeout value for flushing cache

In order to silent the warning below:

mmc0: unspecified timeout for CMD6 - use generic

Fixes: 4734c45258 ("mmc: core: don't check card status when flushing cache")
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I561fd8592c646a61d22b04e27a0fc0a6c9b01f4e
This commit is contained in:
Shawn Lin
2021-07-01 16:18:03 +08:00
parent 3c6a5390ca
commit dc141f807f

View File

@@ -995,7 +995,8 @@ int mmc_flush_cache(struct mmc_card *card)
if (mmc_cache_enabled(card->host)) {
err = __mmc_switch(card, EXT_CSD_CMD_SET_NORMAL,
EXT_CSD_FLUSH_CACHE, 1, 0, 0,
EXT_CSD_FLUSH_CACHE, 1,
MMC_CACHE_FLUSH_TIMEOUT_MS, 0,
false, false);
if (err)
pr_err("%s: cache flush error %d\n",