Re: [PATCH][RESEND] of: return of_get_cpu_node from of_cpu_device_node_get if CPUs are not registered

From: Sudeep Holla
Date: Thu Aug 17 2017 - 11:48:19 EST


Hi Rob,

On 14/08/17 17:18, Sudeep Holla wrote:
> Instead of the callsites choosing between of_cpu_device_node_get if the
> CPUs are registered as of_node is populated by then and of_get_cpu_node
> when the CPUs are not yet registered as CPU of_nodes are not yet stashed
> thereby needing to parse the device tree, we can call of_get_cpu_node
> in case the CPUs are not yet registered in of_cpu_device_node_get.
>
> This will allow to use of_cpu_device_node_get anywhere hiding the
> details from the caller.
>
> Cc: Rob Herring <robh+dt@xxxxxxxxxx>
> Cc: Frank Rowand <frowand.list@xxxxxxxxx>
> Signed-off-by: Sudeep Holla <sudeep.holla@xxxxxxx>
> ---
> include/linux/of_device.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> Hi Rob,
>
> You have already acked this patch, but I wanted you to pick up this via
> your tree and hence I am resending it. I tried pinging on that thread
> but I can understand that it's lost in your mailbox :)
>

Gentle ping!

--
Regards,
Sudeep