]> git.baikalelectronics.ru Git - uboot.git/commit
board: stm32mp1: fix handling of DT OP-TEE reserved memory nodes
authorEtienne Carriere <etienne.carriere@linaro.org>
Fri, 5 Jun 2020 07:24:29 +0000 (09:24 +0200)
committerPatrick Delaunay <patrick.delaunay@st.com>
Tue, 16 Jun 2020 08:38:09 +0000 (10:38 +0200)
commit9100b147bc8d060f33aa572d4aaf21fc1b6affc7
tree44ef9ed0f8b301a20e3e891e999b2a4bb69f7d50
parent402138b2661bf76b8fcadc24596e78c0f26c69ee
board: stm32mp1: fix handling of DT OP-TEE reserved memory nodes

Fix the sequence in stm32mp1 fdt.c that disables OP-TEE resources
defined in FDT when U-boot detects OP-TEE firmware is not present.

Before this change, helper function stm32_fdt_disable_optee()
set property status to "disabled" for the OP-TEE reserved memory
nodes but this has no impact since Linux kernel does not consider
the status property for reserved-memory subnodes. This change
make U-Boot to attempt to delete the node instead.

Fixes: e19595855e6f ("board: stm32mp1: reserve memory for OP-TEE in device tree")
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
arch/arm/mach-stm32mp/fdt.c