Sorry for the mess with the footer. Unfortunately, leaving it away is a
manual step I have to remember with every patch :-(
Let me know if I should resend...
Simon
On 31.01.2018 14:33, Simon Goldschmidt wrote:
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.
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(-)
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot