Re: [PATCH 1/3] of: always populate a root node

From: Frank Rowand
Date: Tue May 03 2022 - 13:22:20 EST


On 5/3/22 08:45, Rob Herring wrote:
> On Wed, Apr 27, 2022 at 11:45:00AM +0200, Clément Léger wrote:
>> When enabling CONFIG_OF on a platform where of_root is not populated by
>> firmware, we end up without a root node. In order to apply overlays and
>> create subnodes of the root node, we need one. This commit creates an
>> empty root node if not present.
>
> The existing unittest essentially does the same thing for running the
> tests on non-DT systems. It should be modified to use this support
> instead. Maybe that's just removing the unittest code that set of_root.
>
> I expect Frank will have some comments.
>

< snip >

This patch series is next on my list, after what I am currently working
on (updating the .dts -> .dtso patch). I may get to this today, but
more likely it will be tomorrow.

-Frank