]> git.baikalelectronics.ru Git - uboot.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)
commita81ccfdf9c36c369b636bfb2e75449eeb43dffe8
treef48675aa4741cceb0eb4704b3c348008fcbe81e6
parentc16b24f0f8efe9f5c20b832156aad43d6ed47c24
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