[U-Boot] [PATCH 1/3] Revert "blk: Invalidate block cache when switching hwpart"

Felix Brack fb at ltec.ch
Tue Aug 27 08:21:46 UTC 2019


On 27.08.19 09:32, 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>
> ---
For the PDU001 board:

Tested-by: Felix Brack <fb at ltec.ch>

regards, Felix


More information about the U-Boot mailing list