devicetree-org / lopper

Other
32 stars 38 forks source link

assists: baremetallinker: Update the logic to find phandle in addressmap #341

Closed sivadur closed 3 months ago

sivadur commented 3 months ago

The current logic to find phandle in address map is actually checking against all fields in addressmap(address, size, phandle) which is incorrect. Fix this by checking it only against the phandle in addressmap.

zeddii commented 3 months ago

This looks ok to me.

But also note that there are LopperTree routines that can simplify (or at least unify) some of the logic in the assist.

i.e. see phandle_map() and how it is used in other places in the tree.