SPL: FIT: improve error handling
authorAndre Przywara <andre.przywara@arm.com>
Wed, 26 Apr 2017 00:32:35 +0000 (01:32 +0100)
committerJagan Teki <jagan@openedev.com>
Wed, 17 May 2017 17:44:52 +0000 (23:14 +0530)
commit5c8c8faccf0e660040ada1a9376b74a6807d4f5f
treeebaec8c4c88af861f60c5270affecafd26473f4c
parent736806fbfa7a0ffc2bc18c1521e42ac578b1ad1e
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>
common/spl/spl_fit.c