From: Tom Rini Date: Mon, 2 Sep 2019 10:13:14 -0400 Subject: [U-Boot] [PATCH 2/3] mmc: invalidate block cache after hwpart switched successfully In-Reply-To: <1566891140-1811-2-git-send-email-weijie.gao@mediatek.com> References: <1566891140-1811-1-git-send-email-weijie.gao@mediatek.com> <1566891140-1811-2-git-send-email-weijie.gao@mediatek.com> Message-ID: <20190902141314.GS26850@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Tested-by: Felix Brack 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: