public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 0/4] env: cleanups after adding multiple envs
@ 2018-01-31 13:47 Simon Goldschmidt
  2018-01-31 13:47 ` [U-Boot] [PATCH v2 1/4] env: make env_import(_redund) return 0 on success, not 1 Simon Goldschmidt
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Simon Goldschmidt @ 2018-01-31 13:47 UTC (permalink / raw)
  To: u-boot

With the new code to support multiple environment drivers and
select an environment at runtime, to correctly implement fallback
when one environment fails to load (e.g. crc error), the return
value of env_import has to be propagated by all env driver's load
function.

While cleaning this up, made some other cleanups, mainly to
reduce duplicated code.

Changes from v1:
  - fixed duplicated commit message for patch 3/4
  - removed german company email footer

Simon Goldschmidt (4):
  env: make env_import(_redund) return 0 on success, not 1
  env: move more common code to env_import_redund
  env: make env drivers propagate env_import return value
  env: sf: use env_import_redund to simplify env_sf_load

 env/common.c          | 29 ++++++++++++++++++----
 env/eeprom.c          |  4 +--
 env/ext4.c            |  3 +--
 env/fat.c             |  3 +--
 env/flash.c           |  4 +--
 env/mmc.c             | 26 +++----------------
 env/nand.c            | 24 +++---------------
 env/nvram.c           |  4 +--
 env/onenand.c         |  4 +--
 env/remote.c          |  2 +-
 env/sata.c            |  4 +--
 env/sf.c              | 69 +++++++--------------------------------------------
 env/ubi.c             | 22 ++++++++--------
 include/environment.h |  3 ++-
 14 files changed, 61 insertions(+), 140 deletions(-)

-- 
2.11.0

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

end of thread, other threads:[~2018-02-01 13:09 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-31 13:47 [U-Boot] [PATCH v2 0/4] env: cleanups after adding multiple envs Simon Goldschmidt
2018-01-31 13:47 ` [U-Boot] [PATCH v2 1/4] env: make env_import(_redund) return 0 on success, not 1 Simon Goldschmidt
2018-01-31 15:38   ` Maxime Ripard
2018-02-01 13:09   ` [U-Boot] [U-Boot, v2, " Tom Rini
2018-01-31 13:47 ` [U-Boot] [PATCH v2 2/4] env: move more common code to env_import_redund Simon Goldschmidt
2018-01-31 15:39   ` Maxime Ripard
2018-02-01 13:09   ` [U-Boot] [U-Boot, v2, " Tom Rini
2018-01-31 13:47 ` [U-Boot] [PATCH v2 3/4] env: make env drivers propagate env_import return value Simon Goldschmidt
2018-01-31 15:40   ` Maxime Ripard
2018-02-01 13:09   ` [U-Boot] [U-Boot, v2, " Tom Rini
2018-01-31 13:47 ` [U-Boot] [PATCH v2 4/4] env: sf: use env_import_redund to simplify env_sf_load Simon Goldschmidt
2018-01-31 15:40   ` Maxime Ripard
2018-02-01 13:09   ` [U-Boot] [U-Boot, v2, " Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox