]> git.dujemihanovic.xyz Git - u-boot.git/commit
env: nand: Put ENV_INVALID into gd->env_valid if default environment
authorMarek Behún <marek.behun@nic.cz>
Fri, 22 Oct 2021 13:47:15 +0000 (15:47 +0200)
committerSimon Glass <sjg@chromium.org>
Sun, 31 Oct 2021 18:26:44 +0000 (12:26 -0600)
commit07dcd82546ea1b1e3bbb139254d7ac3f531a1caf
tree2cfa7415e7334e1fcd0c6bbbf94107527502f1f3
parentaf8149e9ac40dbb596fb2f5b72b82feb54476f68
env: nand: Put ENV_INVALID into gd->env_valid if default environment

env_nand_init() says the environment is valid even if it is assigning
default environment due to not being able to access nand pre-reloaction
(determined by macro values). Change this to ENV_INVALID and let the
generic env_init() function, which calls this initializer, assign the
default environment.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Simon Glass <sjg@chromium.org>
env/nand.c