[PATCH 10/10] common/board_r: Move blkcache_init call earlier in the boot sequence

Simon Glass sjg at chromium.org
Fri Jul 10 02:35:22 CEST 2020


On Thu, 9 Jul 2020 at 02:11, Ovidiu Panait <ovidiu.panait at windriver.com> 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.
>
> Cc: Angelo Durgehello <angelo.dureghello at timesys.com>
> Signed-off-by: Ovidiu Panait <ovidiu.panait at windriver.com>
> ---
>
>  common/board_r.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list