commit | 42a89ecc3e9401d9d219e197ef7d64373a8ba72b | [log] [tgz] |
---|---|---|
author | Jonas Karlman <jonas@kwiboo.se> | Sun Aug 04 15:05:49 2024 +0000 |
committer | Tom Rini <trini@konsulko.com> | Tue Aug 27 14:32:49 2024 -0600 |
tree | 6c87fec74dec4f8f969b683e590d33ed92770491 | |
parent | dede31cf34043e2e4d992123e166c36c965add94 [diff] |
dm: core: fdtaddr: Avoid multiple calls to fdt_parent_offset() Use of fdt_parent_offset() is very expensive as detailed by the function documentation: NOTE: This function is expensive, as it must scan the device tree structure from the start to nodeoffset, *twice*. Re-use the returned value from a single call instead of having to make multiple calls for same nodeoffset. Signed-off-by: Jonas Karlman <jonas@kwiboo.se> Reviewed-by: Simon Glass <sjg@chromium.org>