summaryrefslogtreecommitdiffstats
path: root/tools/dtoc/test_fdt.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-03-21 18:24:36 +1300
committerSimon Glass <sjg@chromium.org>2021-03-27 16:26:48 +1300
commit71719e15e870f47ab368966394a5f2f32bf98095 (patch)
treee9c24518107b22e713649e04c4d8b511a456a430 /tools/dtoc/test_fdt.py
parent37ba9844c2e3689a6860d3f5c6d312490a3f2d80 (diff)
downloadu-boot-71719e15e870f47ab368966394a5f2f32bf98095.tar.gz
u-boot-71719e15e870f47ab368966394a5f2f32bf98095.tar.xz
u-boot-71719e15e870f47ab368966394a5f2f32bf98095.zip
dtoc: Tweak ordering of fdt-offsets refreshing
Once the tree has been synced, thus potentially moving things around in the fdt, we set _cached_offsets to False so that a refresh will happen next time a property is accessed. This 'lazy' refresh doesn't really save much time, since refresh is a very fast operation, just a single walk of the tree. Also, having the refresh happen in the bowels of property access it makes it harder to figure out what is going on. Simplify the code by always doing a refresh before and after a sync. Set _cached_offsets to True immediately after this, in the Refresh() function, since this makes more sense than doing it in the caller. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/dtoc/test_fdt.py')
0 files changed, 0 insertions, 0 deletions