From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Tue, 3 Nov 2015 10:56:41 -0500 Subject: [U-Boot] [PATCH V3 08/13] spl: change return values of spl_*_load_image() In-Reply-To: <1446553193-27276-1-git-send-email-nikita@compulab.co.il> References: <1446024210-16517-9-git-send-email-nikita@compulab.co.il> <1446553193-27276-1-git-send-email-nikita@compulab.co.il> Message-ID: <20151103155641.GU8499@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 Tue, Nov 03, 2015 at 02:19:53PM +0200, Nikita Kiryanov wrote: > Make spl_*_load_image() functions return a value instead of > hanging if a problem is encountered. This enables main spl code > to make the decision whether to hang or not, thus preparing > it to support alternative boot devices. > > Some boot devices (namely nand and spi) do not hang on error. > Instead, they return normally and SPL proceeds to boot the > contents of the load address. This is considered a bug and > is rectified by hanging on error for these devices as well. > > Signed-off-by: Nikita Kiryanov > Cc: Igor Grinberg > Cc: Tom Rini > Cc: Simon Glass > Cc: Ian Campbell > Cc: Hans De Goede > Cc: Albert Aribaud > Cc: Jagan Teki Reviewed-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: