[Skiboot] [PATCH 1/3] core/device: Add function to return child node using name at substring "@"

Athira Rajeev atrajeev at linux.vnet.ibm.com
Mon Sep 25 15:21:42 AEST 2023



> On 18-Sep-2023, at 7:42 PM, Reza Arbab <arbab at linux.ibm.com> wrote:
> 
> 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

Thanks Reza for picking up the patchset

Athira



More information about the Skiboot mailing list