[U-Boot] [PATCH v2 10/15] env: Initialise all the environments
Simon Glass
sjg at chromium.org
Wed Jan 17 22:07:52 UTC 2018
On 16 January 2018 at 01:16, Maxime Ripard
<maxime.ripard at free-electrons.com> wrote:
> Since we want to have multiple environments, we will need to initialise
> all the environments since we don't know at init time what drivers might
> fail when calling load.
>
> Let's init all of them, and only consider for further operations the ones
> that have not reported any errors at init time.
>
> Signed-off-by: Maxime Ripard <maxime.ripard at free-electrons.com>
> ---
> env/env.c | 36 +++++++++++++++++++++++++-------
> include/asm-generic/global_data.h | 1 +-
> 2 files changed, 30 insertions(+), 7 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list