summaryrefslogtreecommitdiff
path: root/tools/patman/commit.py
diff options
context:
space:
mode:
authorJonas Karlman <jonas@kwiboo.se>2024-08-04 15:05:51 +0000
committerTom Rini <trini@konsulko.com>2024-08-27 14:32:49 -0600
commit6f5b1686610119c321962ba2224bda6d71fc8968 (patch)
tree022224139f51ab42e7a7f1dcef0beac4cdb9cde3 /tools/patman/commit.py
parent445406afbba6182a9fc46de1b260359e6bc69a0a (diff)
dm: core: regmap: Avoid multiple calls to ofnode_get_parent()
Until a live tree is used in U-Boot proper after relocation, use of ofnode_get_parent() will trigger a call to the very expensive fdt_parent_offset(), 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 node. Signed-off-by: Jonas Karlman <jonas@kwiboo.se> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/patman/commit.py')
0 files changed, 0 insertions, 0 deletions