From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Thu, 18 Jul 2019 20:00:06 -0400 Subject: [U-Boot] [PATCH] blk: Invalidate block cache when switching hwpart In-Reply-To: <1562829023-6494-1-git-send-email-weijie.gao@mediatek.com> References: <1562829023-6494-1-git-send-email-weijie.gao@mediatek.com> Message-ID: <20190719000006.GT20116@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 Thu, Jul 11, 2019 at 03:10:23PM +0800, Weijie Gao wrote: > 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 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: