On Fri, Jul 24, 2020 at 02:12:25PM +0300, Ovidiu Panait wrote:

> blkcache_init manually relocates blkcache list pointers when
> CONFIG_NEEDS_MANUAL_RELOC is enabled. However, it is called very late in
> the boot sequence, which could be a problem if previous boot calls execute
> blkcache operations with the non-relocated pointers. For example, mmc is
> initialized earlier and might call blkcache_invalidate (in
> mmc_select_hwpart()) when trying to load the environment from mmc via
> env_load().
> 
> To fix this issue, move blkcache_init boot call earlier, before mmc gets
> initialized.
> 
> Acked-by: Angelo Dureghello <angelo.dureghe...@timesys.com>
> Tested-by: Angelo Dureghello <angelo.dureghe...@timesys.com>
> Reviewed-by: Simon Glass <s...@chromium.org>
> Signed-off-by: Ovidiu Panait <ovidiu.pan...@windriver.com>

Applied to u-boot/master, thanks!

-- 
Tom

Attachment: signature.asc
Description: PGP signature

Reply via email to