Hi Vikram,

> On Aug 25, 2023, at 16:02, Vikram Garhwal <vikram.garh...@amd.com> wrote:
> 
> Add device_tree_find_node_by_path() to find a matching node with path for a
> dt_device_node.
> 
> Reason behind this function:
>    Each time overlay nodes are added using .dtbo, a new fdt(memcpy of
>    device_tree_flattened) is created and updated with overlay nodes. This
>    updated fdt is further unflattened to a dt_host_new. Next, we need to find
>    the overlay nodes in dt_host_new, find the overlay node's parent in dt_host
>    and add the nodes as child under their parent in the dt_host. Thus we need
>    this function to search for node in different unflattened device trees.
> 
> Also, make dt_find_node_by_path() static inline.
> 
> Signed-off-by: Vikram Garhwal <vikram.garh...@amd.com>

Reviewed-by: Henry Wang <henry.w...@arm.com>

Kind regards,
Henry

> 


Reply via email to