summaryrefslogtreecommitdiff
path: root/include/stdio_dev.h
diff options
context:
space:
mode:
authorParesh Bhagat <[email protected]>2026-07-01 13:20:18 +0530
committerTom Rini <[email protected]>2026-07-16 12:04:48 -0600
commitd3e287405f0a0f9683f9c6c49e84495ea18d9f01 (patch)
treed347bfc9c35ec3291cba932350bf11542271f797 /include/stdio_dev.h
parent204eefab537f8f662abdbbce09eb6b5884ae699d (diff)
arm: mach-k3: Fix phandle corruption in fdt fixup
Fix phandle corruption in fdt_fixup_reserved_memory() The original implementation used a delete/recreate approach: - Find existing reserved memory node (e.g. tfa@80000000) - Delete the entire node with fdt_del_node() - Create new node with fdtdec_add_reserved_memory() This worked fine for ATF and OPTEE nodes because no other device tree nodes reference them via phandles but other nodes example DM are referenced by R5 nodes. If these nodes are deleted and recreated, it will not have any phandle property but the nodes referencing it will still contain the old phandle, causing initialization to fail. Update nodes in-place instead of delete/recreate to update only the "reg" property using fdt_setprop(). Fixes: 8b0fc29de0e3 ("arm: mach-k3: am62: Fixup TF-A/OP-TEE reserved-memory node in FDT") Signed-off-by: Paresh Bhagat <[email protected]> Reviewed-by: Neha Malcom Francis <[email protected]> Acked-by: Andrew Davis <[email protected]>
Diffstat (limited to 'include/stdio_dev.h')
0 files changed, 0 insertions, 0 deletions