From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Thu, 1 Feb 2018 08:09:16 -0500 Subject: [U-Boot] [U-Boot, v2, 3/4] env: make env drivers propagate env_import return value In-Reply-To: <20180131134713.11566-4-sgoldschmidt@de.pepperl-fuchs.com> References: <20180131134713.11566-4-sgoldschmidt@de.pepperl-fuchs.com> Message-ID: <20180201130916.GI4297@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Jan 31, 2018 at 02:47:12PM +0100, Simon Goldschmidt wrote: > For multiple env drivers 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. > > Without this change, the first driver that succeeds to load an > environment with an invalid CRC return 0 (success) and no other > drivers are checked. > > Signed-off-by: Simon Goldschmidt > Acked-by: Maxime Ripard Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: