[PATCH] env: fat, ubi: Fix gd->env_valid for the first write

Tom Rini trini at konsulko.com
Fri Oct 24 21:55:08 CEST 2025


On Tue, 21 Oct 2025 14:37:01 -0600, Tom Rini wrote:

> As resolved and explained in detail in commit e589d5822cac ("env: spi:
> Fix gd->env_valid for the first write") and archived discussion there is
> a corner case where we don't do the right thing with redundant
> environments. This same exact check was present in the mmc code and
> resolved with commit 813a0df27a8a ("env: Invert gd->env_valid for
> env_mmc_save") and in the discussion of that patch, I noted that both
> fat and ubi (and at the time, sf) were doing the same thing. Take the
> time now to correct fat and ubi environment.
> 
> [...]

Applied to u-boot/master, thanks!

[1/1] env: fat, ubi: Fix gd->env_valid for the first write
      commit: cf262e16080abcd587f47d0bbc8fa84558abcf89
-- 
Tom




More information about the U-Boot mailing list