lib: utils/fdt/fdt_domain: Simplify region access permission check
authorBin Meng <bmeng@tinylab.org>
Fri, 24 Feb 2023 04:28:26 +0000 (12:28 +0800)
committerAnup Patel <anup@brainfault.org>
Mon, 27 Feb 2023 08:19:21 +0000 (13:49 +0530)
commitbc06ff65bf97172d11d6c898291fe1b98e177715
tree5a3633e57eb234e7640c84d12c0d8d963cfd6748
parent5a75f5309c7544bbf7ef021bdeee0b0455af6d9b
lib: utils/fdt/fdt_domain: Simplify region access permission check

The region access permission check in __fdt_parse_region() can be
simplified as masking SBI_DOMAIN_MEMREGION_{M,SU}_ACCESS_MASK is
enough.

While we are here, update the confusing comments to match the codes.

Signed-off-by: Bin Meng <bmeng@tinylab.org>
Reviewed-by: Anup Patel <anup@brainfault.org>
lib/utils/fdt/fdt_domain.c