image: fdt: check "status" of "/reserved-memory" subnodes
authorThirupathaiah Annapureddy <thiruan@linux.microsoft.com>
Tue, 7 Jan 2020 06:21:42 +0000 (22:21 -0800)
committerSimon Glass <sjg@chromium.org>
Thu, 6 Feb 2020 02:33:46 +0000 (19:33 -0700)
commit28b417ce859490d6b06e71dbf4e842841e64d34d
treeb5ea6ca4eb3ee9bb609a35e176bf85c12b5ca18a
parent400175b0a7daa062ed88def052ae6d54ec56a7e9
image: fdt: check "status" of "/reserved-memory" subnodes

boot_fdt_add_mem_rsv_regions() scans the subnodes of
"/reserved-memory" and adds them to reserved lmb regions.
Currently this scanning does not take into "status" property.
Even if the subnode is disabled, it gets added to the
reserved lmb regions.

This patch checks the "status" property before adding it
to reserved lmb regions.

Signed-off-by: Thirupathaiah Annapureddy <thiruan@linux.microsoft.com>
common/image-fdt.c