]> git.baikalelectronics.ru Git - uboot.git/commit
riscv: Fix setting no-map in reserved memory nodes
authorSamuel Holland <samuel@sholland.org>
Sun, 12 Sep 2021 16:05:47 +0000 (11:05 -0500)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Thu, 7 Oct 2021 08:08:23 +0000 (16:08 +0800)
commit55fa040404a50618d39bdd80127cc46075cdebd6
tree015b7eeea283d4b629dc306ee69cb9e84ad4aaac
parente6e07a47b8d6b2d4b0bcbacbaecec6139b61a303
riscv: Fix setting no-map in reserved memory nodes

The no-map property is wrongly skipped if a no-map reserved memory
node follows one without that property. Fix this by not remembering
the absence of a no-map property across loop iterations.

Fixes: 3811ef0c390d ("riscv: Provide a mechanism to fix DT for reserved memory")
Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Rick Chen <rick@andestech.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
arch/riscv/lib/fdt_fixup.c