All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/3] env: Fix up invalid environment in env_init()
@ 2017-08-20 10:45 Simon Glass
  2017-08-20 10:45 ` [U-Boot] [PATCH 2/3] env: Allow env_load() to detect errors Simon Glass
  2017-08-20 10:45 ` [U-Boot] [PATCH 3/3] env: Replace all open-coded gd->env_valid values with ENV_ flags Simon Glass
  0 siblings, 2 replies; 5+ messages in thread
From: Simon Glass @ 2017-08-20 10:45 UTC (permalink / raw)
  To: u-boot

This should be set to valid, not invalid. Otherwise the environment will
not load after relocation.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 env/env.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/env/env.c b/env/env.c
index 2b8b9611cf..8671f13f8d 100644
--- a/env/env.c
+++ b/env/env.c
@@ -138,7 +138,7 @@ int env_init(void)
 		ret = drv->init();
 	if (ret == -ENOENT) {
 		gd->env_addr = (ulong)&default_environment[0];
-		gd->env_valid = 0;
+		gd->env_valid = ENV_VALID;
 
 		return 0;
 	} else if (ret) {
-- 
2.14.1.480.gb18f417b89-goog

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-08-20 23:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-20 10:45 [U-Boot] [PATCH 1/3] env: Fix up invalid environment in env_init() Simon Glass
2017-08-20 10:45 ` [U-Boot] [PATCH 2/3] env: Allow env_load() to detect errors Simon Glass
2017-08-20 23:29   ` [U-Boot] [U-Boot,2/3] " Tom Rini
2017-08-20 10:45 ` [U-Boot] [PATCH 3/3] env: Replace all open-coded gd->env_valid values with ENV_ flags Simon Glass
2017-08-20 23:29   ` [U-Boot] [U-Boot, " Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.