bloblist: fix the overriding of fdt from bloblist
authorRaymond Mao <raymond.mao@linaro.org>
Mon, 31 Mar 2025 22:40:09 +0000 (15:40 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 28 Apr 2025 16:13:19 +0000 (10:13 -0600)
commit57a36716cfc0fdac0658bd9317e28e28d4d29f68
tree1d3f16f63ce04078b29dc599ea33e61980891e2c
parentc17f03a7e93dfbbe5d32f5738274187065d9493f
bloblist: fix the overriding of fdt from bloblist

When a bloblist is valid and contains fdt, it explicitly means
a previous boot stage is passing transfer list compliant with
Firmware Handoff specification, thus the fdt from bloblist should
not be overridden with the ones from board or env variables.

Fixes: 70fe23859437 ("fdt: Allow the devicetree to come from a bloblist")
Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
Reviewed-by: Caleb Connolly <caleb.connolly@linaro.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
lib/fdtdec.c