[U-Boot] [PATCH 2/3] mmc: invalidate block cache after hwpart switched successfully

Tom Rini trini at konsulko.com
Mon Sep 2 14:13:14 UTC 2019


On Tue, Aug 27, 2019 at 03:32:19PM +0800, Weijie Gao wrote:

> eMMC device has multiple hw partitions both address from zero. However the
> mmc driver lacks block cache invalidation for switch hwpart. This causes 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
> mmc_switch_part() operation.
> 
> Signed-off-by: Weijie Gao <weijie.gao at mediatek.com>
> Tested-by: Felix Brack <fb at ltec.ch>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190902/bb87ebd5/attachment.sig>


More information about the U-Boot mailing list