]> git.dujemihanovic.xyz Git - u-boot.git/commit
pstore: Support already existing reserved-memory node
authorDetlev Casanova <detlev.casanova@collabora.com>
Mon, 7 Feb 2022 16:02:30 +0000 (11:02 -0500)
committerTom Rini <trini@konsulko.com>
Mon, 14 Feb 2022 18:03:49 +0000 (13:03 -0500)
commitac52cba63f26eab9c74f3d1c2da00835724d3484
treef48675aa4741cceb0eb4704b3c348008fcbe81e6
parent162c22bfbc4141f22937c6bc37aa02fd4621e76c
pstore: Support already existing reserved-memory node

The pstore command tries to create a reserved-memory node but fails if
it is already present with:

    Add 'reserved-memory' node failed: FDT_ERR_EXISTS

This patch creates the node only if it does not exist and adapts the reg
values sizes depending on already present #address-cells and #size-cells
values.

Signed-off-by: Detlev Casanova <detlev.casanova@collabora.com>
cmd/pstore.c