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 --- board/toradex/common/tdx-cfg-block.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'board/toradex/common') diff --git a/board/toradex/common/tdx-cfg-block.c b/board/toradex/common/tdx-cfg-block.c index 328c4c0200..f850a3c98e 100644 --- a/board/toradex/common/tdx-cfg-block.c +++ b/board/toradex/common/tdx-cfg-block.c @@ -129,8 +129,6 @@ static int tdx_cfg_block_mmc_storage(u8 *config_block, int write) ret = -EIO; goto out; } - /* Flush cache after read */ - flush_cache((ulong)(unsigned char *)config_block, 512); } else { /* Just writing one 512 byte block */ if (blk_dwrite(mmc_get_blk_desc(mmc), blk_start, 1, -- cgit