[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220623105044.152832-1-clement.leger@bootlin.com>
Date: Thu, 23 Jun 2022 12:50:42 +0200
From: Clément Léger <clement.leger@...tlin.com>
To: Rob Herring <robh+dt@...nel.org>,
Frank Rowand <frowand.list@...il.com>
Cc: Clément Léger <clement.leger@...tlin.com>,
linux-kernel@...r.kernel.org, devicetree@...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 v1 0/2] of: populate of_root node if not set
In order to apply overlays or create new nodes under the root node, the
kernel expects of_root to be set. On some system were a device-tree us
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.
Clément Léger (2):
of: base: populate of_root node if not set
of: unittest: remove check for of_root
drivers/of/Makefile | 2 +-
drivers/of/base.c | 18 ++++++++++++++++--
drivers/of/empty_root.dts | 6 ++++++
drivers/of/unittest.c | 10 ----------
4 files changed, 23 insertions(+), 13 deletions(-)
create mode 100644 drivers/of/empty_root.dts
--
2.36.1
Powered by blists - more mailing lists