public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: Marek Vasut <marex@denx.de>
Cc: u-boot@lists.denx.de,
	"Felix . Vietmeyer @ jila . colorado . edu"
	<felix.vietmeyer@jila.colorado.edu>
Subject: Re: [PATCH] Revert "env: Load env when ENV_IS_NOWHERE is only location selected"
Date: Sun, 10 Apr 2022 11:20:57 -0400	[thread overview]
Message-ID: <20220410152057.GS14282@bill-the-cat> (raw)
In-Reply-To: <20220410044652.714323-1-marex@denx.de>

[-- Attachment #1: Type: text/plain, Size: 1342 bytes --]

On Sun, Apr 10, 2022 at 06:46:52AM +0200, Marek Vasut wrote:

> This reverts commit 8d61237edbf6314a701cf78da2c5893a73ff5438.
> 
> This commit broke environment on literally every board I have access
> to, with this revert in place, environment works as it should again.
> The problem I observe with this patch is that saved environment in
> either SPI NOR or eMMC is never used, the system always falls back
> to default environment. The 'saveenv' command does succeed, but then
> after reset, the default env is again used.
> 
> Furthermore, the commit introduced duplicate code in env_init(), this:
> "
> 	if (!prio) {
> 		gd->env_addr = (ulong)&default_environment[0];
> 		gd->env_valid = ENV_INVALID;
> 
> 		return 0;
> 	}
> 
> 	if (ret == -ENOENT) {
> 		gd->env_addr = (ulong)&default_environment[0];
> 		gd->env_valid = ENV_INVALID;
> 
> 		return 0;
> 	}
> "
> 
> Furthermore, the commit is missing DCO SoB line.
> 
> Also note that upstream does not support UltraZed EG board, so
> this might have been a patch pulled from downstream which did
> depend on some other downstream behavior.
> 
> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Felix.Vietmeyer@jila.colorado.edu <felix.vietmeyer@jila.colorado.edu>
> Cc: Tom Rini <trini@konsulko.com>

Applied to u-boot/master, thanks!

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

      parent reply	other threads:[~2022-04-10 15:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-10  4:46 [PATCH] Revert "env: Load env when ENV_IS_NOWHERE is only location selected" Marek Vasut
2022-04-10 11:54 ` Felix.Vietmeyer
2022-04-10 22:20   ` Marek Vasut
2022-04-13  0:49     ` Felix.Vietmeyer
2022-04-13  1:09       ` Marek Vasut
2022-04-10 15:20 ` Tom Rini [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220410152057.GS14282@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=felix.vietmeyer@jila.colorado.edu \
    --cc=marex@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox