u-boot-brain/drivers/block
Weijie Gao 0ebe112d09 blk: Invalidate block cache when switching hwpart
Some storage devices have multiple hw partitions and both address from
zero, for example eMMC.
However currently block cache invalidation only applies to block
write/erase.
This can cause a problem that data of current hw partition is cached
before switching to another hw partition. And the following read
operation of the latter hw partition will get wrong data when reading
from the addresses that have been cached previously.

To solve this problem, invalidate block cache after a successful
select_hwpart operation.

Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
2019-07-18 11:31:31 -04:00
..
blk_legacy.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
blk-uclass.c blk: Invalidate block cache when switching hwpart 2019-07-18 11:31:31 -04:00
blkcache.c blk: Increase cache element size 2019-01-15 15:28:53 -05:00
ide.c blk: Call part_init() in the post_probe() method 2018-11-14 09:16:27 -08:00
Kconfig blk: Allow control of the block cache in TPL 2019-07-10 16:52:58 -06:00
Makefile blk: Rework guard around part_init call 2018-12-12 12:14:22 -05:00
sandbox.c blk: Call part_init() in the post_probe() method 2018-11-14 09:16:27 -08:00