SPL: FIT: improve error handling
authorAndre Przywara <andre.przywara@arm.com>
Wed, 26 Apr 2017 00:32:35 +0000 (01:32 +0100)
committerJason Liu <jason.hui.liu@nxp.com>
Thu, 2 Nov 2017 18:37:22 +0000 (02:37 +0800)
commitf952c933147f0aa6ef845190f4741894e5626c46
treec8330d49fd0c39b58b0f0f7c44ec905973b6c671
parente0109e51009b05719d1fd4598a610dd5592e3bbc
SPL: FIT: improve error handling

At the moment we ignore any errors due to missing FIT properties,
instead go ahead and calculate our addresses with the -1 return value.
Fix this and bail out if any of the mandatory properties are missing.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Tested-by: Kever Yang <kever.yang@rock-chips.com>
Tested-by: Jagan Teki <jagan@openedev.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
(cherry picked from commit 5c8c8faccf0e660040ada1a9376b74a6807d4f5f)
common/spl/spl_fit.c