[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220624034327.2542112-1-frowand.list@gmail.com>
Date: Thu, 23 Jun 2022 22:43:25 -0500
From: frowand.list@...il.com
To: Rob Herring <robh+dt@...nel.org>,
Clément Léger <clement.leger@...tlin.com>
Cc: devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
Lizhi Hou <lizhi.hou@...inx.com>,
Allan Nielsen <allan.nielsen@...rochip.com>,
Horatiu Vultur <horatiu.vultur@...rochip.com>,
Steen Hegelund <steen.hegelund@...rochip.com>,
Thomas Petazzoni <thomas.petazzoni@...tlin.com>
Subject: [PATCH 0/2] of: populate of_root_node if not set (alternate)
From: Frank Rowand <frank.rowand@...y.com>
This series is a different implementation to achieve the goals of
https://lore.kernel.org/r/20220623105044.152832-1-clement.leger@bootlin.com
In order to apply overlays or create new nodes under the root node, the
kernel expects of_root to be set. On some system where a device-tree was
not provided by firmware (x86 for instance) if CONFIG_OF is enabled,
then we will end up with a null of_root. This series add support to
create this root node using a builtin dtb and remove the manual
creation of the root node done in unittests.c.
This series modifies init/main.c. It was not clear to me whether
to add Linus to the distribution, or if the change should flow
through Rob. (I did not add Linus.)
Frank Rowand (2):
of: create of_root if no dtb provided
of: unittest: treat missing of_root as error instead of fixing up
drivers/of/Makefile | 2 +-
drivers/of/fdt.c | 19 ++++++++++++++++++-
drivers/of/unittest.c | 16 ++++++----------
include/linux/of_fdt.h | 2 ++
init/main.c | 2 ++
5 files changed, 29 insertions(+), 12 deletions(-)
--
Frank Rowand <frank.rowand@...y.com>
Powered by blists - more mailing lists