[U-Boot] [PATCH 1/3] Revert "blk: Invalidate block cache when switching hwpart"
trini at konsulko.com
Mon Sep 2 14:13:09 UTC 2019
On Tue, Aug 27, 2019 at 03:32:18PM +0800, Weijie Gao wrote:
> This reverts commit 0ebe112d09b48230ba4be833cd3504b06997d9a4.
> Most block devices have only one hwpart. Multiple hwparts only found used
> by eMMC devices in u-boot. The mmc driver do blk_dselect_hwpart() at the
> beginning of mmc_bread() which causes block cache being invalidated too
> frequently and makes block cache useless.
> So it's not a good idea to put blkcache_invalidate() in the common
> functions. It should be called inside mmc_select_hwpart().
> Signed-off-by: Weijie Gao <weijie.gao at mediatek.com>
> Tested-by: Felix Brack <fb at ltec.ch>
Applied to u-boot/master, thanks!
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: not available
More information about the U-Boot