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

Tom Rini trini at konsulko.com
Fri Aug 7 04:16:12 CEST 2020

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.dureghello at timesys.com>
> Tested-by: Angelo Dureghello <angelo.dureghello at timesys.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>
> Signed-off-by: Ovidiu Panait <ovidiu.panait at windriver.com>

Applied to u-boot/master, thanks!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200806/a6c4d42e/attachment.sig>

More information about the U-Boot mailing list