[PATCH 1/3] core/device: Add function to return child node using name at substring "@"
Reza Arbab
arbab at linux.ibm.com
Tue Sep 19 00:12:27 AEST 2023
On Thu, Sep 14, 2023 at 10:02:04PM +0530, Athira Rajeev wrote:
>Add a function dt_find_by_name_before_addr() that returns the child node if
>it matches till first occurrence at "@" of a given name, otherwise NULL.
>This is helpful for cases with node name like: "name at addr". In
>scenarios where nodes are added with "name at addr" format and if the
>value of "addr" is not known, that node can't be matched with node
>name or addr. Hence matching with substring as node name will return
>the expected result. Patch adds dt_find_by_name_before_addr() function
>and testcase for the same in core/test/run-device.c
Series applied to skiboot master with the fixup we discussed.
--
Reza Arbab
More information about the Linuxppc-dev
mailing list