dtoc: Tidy up property-offset handling
authorSimon Glass <sjg@chromium.org>
Sun, 21 Mar 2021 05:24:35 +0000 (18:24 +1300)
committerSimon Glass <sjg@chromium.org>
Sat, 27 Mar 2021 03:26:48 +0000 (16:26 +1300)
commit37ba9844c2e3689a6860d3f5c6d312490a3f2d80
tree4b21e8668e84f92959618bece56b3fe64eb25002
parentacd98611c3ca26f10b997ab09aeacd9f4b91d5f3
dtoc: Tidy up property-offset handling

If a property does not yet have an offset, then that means it exists in
the cache'd fdt but has not yet been synced back to the flat tree. Use
the dirty flag for this so we don't need to check the offset too. Improve
the comments for Prop and Node to make it clear what an offset of None
means.

Also clear the dirty flag after the property is synced.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/dtoc/fdt.py