Skip to content
Commit a66d2ae2 authored by Ovidiu Panait's avatar Ovidiu Panait Committed by Tom Rini
Browse files

common/board_r: Move blkcache_init call earlier in the boot sequence



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: default avatarAngelo Dureghello <angelo.dureghello@timesys.com>
Tested-by: default avatarAngelo Dureghello <angelo.dureghello@timesys.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
Signed-off-by: default avatarOvidiu Panait <ovidiu.panait@windriver.com>
parent d2d05409
Loading
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment