mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user