summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorBin Meng <[email protected]>2017-09-12 19:00:23 -0700
committerTom Rini <[email protected]>2017-09-15 08:05:10 -0400
commit723b43daec7ee2ddb600cfcb9b0253d4a71c3915 (patch)
tree44953c1e7fc2634c1e3ec329262d9a3332ba0453 /board
parent6305db960447ff2d32c335de8bbd9b44cb7d6554 (diff)
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 <[email protected]> Reviewed-by: Stefan Roese <[email protected]> Reviewed-by: York Sun <[email protected]> Reviewed-by: Joe Hershberger <[email protected]> Reviewed-by: Simon Glass <[email protected]> Tested-by: York Sun <[email protected]>
Diffstat (limited to 'board')
-rw-r--r--board/toradex/common/tdx-cfg-block.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/board/toradex/common/tdx-cfg-block.c b/board/toradex/common/tdx-cfg-block.c
index 328c4c0200d..f850a3c98e5 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,