From 723b43daec7ee2ddb600cfcb9b0253d4a71c3915 Mon Sep 17 00:00:00 2001 From: Bin Meng Date: Tue, 12 Sep 2017 19:00:23 -0700 Subject: blk: Remove various places that do flush cache after read All these places seem to inherit the codes from the MMC driver where a FIXME was put in the comment. However the correct operation after read should be cache invalidate, not flush. The underlying drivers should be responsible for the cache operation. Remove these codes completely. Signed-off-by: Bin Meng Reviewed-by: Stefan Roese Reviewed-by: York Sun Reviewed-by: Joe Hershberger Reviewed-by: Simon Glass Tested-by: York Sun --- cmd/mmc.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'cmd/mmc.c') diff --git a/cmd/mmc.c b/cmd/mmc.c index 00697fc..5def4ea 100644 --- a/cmd/mmc.c +++ b/cmd/mmc.c @@ -293,8 +293,6 @@ static int do_mmc_read(cmd_tbl_t *cmdtp, int flag, curr_device, blk, cnt); n = blk_dread(mmc_get_blk_desc(mmc), blk, cnt, addr); - /* flush cache after read */ - flush_cache((ulong)addr, cnt * 512); /* FIXME */ printf("%d blocks read: %s\n", n, (n == cnt) ? "OK" : "ERROR"); return (n == cnt) ? CMD_RET_SUCCESS : CMD_RET_FAILURE; -- cgit v1.1