lib: utils: Fix reserved memory node for firmware memory
authorMayuresh Chitale <mchitale@ventanamicro.com>
Sat, 21 Jan 2023 06:45:59 +0000 (12:15 +0530)
committerAnup Patel <anup@brainfault.org>
Sun, 22 Jan 2023 12:19:10 +0000 (17:49 +0530)
commita990309fa362aa050caf7fb175f35c7bfa486ccc
tree99b5c545e5509e99eac473f08a3402bc1a9918af
parent7aaeeab9e794e5a15a0253ef3c3453496f74117a
lib: utils: Fix reserved memory node for firmware memory

The commit 9e0ba090 introduced more fine grained permissions for memory
regions and did not update the fdt_reserved_memory_fixup() function. As
a result, the fdt_reserved_memory_fixup continued to use the older coarse
permissions which causes the reserved memory node to be not inserted
into the DT.

To fix the above issue, we correct the flags used for memory region
permission checks in the fdt_reserved_memory_fixup() function.

Fixes: 9e0ba090 ("include: sbi: Fine grain the permissions for M and SU modes")
Signed-off-by: Mayuresh Chitale <mchitale@ventanamicro.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
lib/utils/fdt/fdt_fixup.c