[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190216004647.206431-1-brendanhiggins@google.com>
Date: Fri, 15 Feb 2019 16:46:47 -0800
From: Brendan Higgins <brendanhiggins@...gle.com>
To: robh+dt@...nel.org, frowand.list@...il.com, mcgrof@...nel.org
Cc: devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
Brendan Higgins <brendanhiggins@...gle.com>
Subject: [PATCH v2] of: unittest: unflatten device tree on UML when testing
UML supports enabling OF, and is useful for running the device tree
tests, so add support for unflattening device tree blobs so we can
actually use it.
Signed-off-by: Brendan Higgins <brendanhiggins@...gle.com>
---
drivers/of/unittest.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c
index 84427384654d5..6de34d5fa0e85 100644
--- a/drivers/of/unittest.c
+++ b/drivers/of/unittest.c
@@ -2527,6 +2527,9 @@ static int __init of_unittest(void)
}
of_node_put(np);
+ if (IS_ENABLED(CONFIG_UML))
+ unittest_unflatten_overlay_base();
+
pr_info("start of unittest - you will see error messages\n");
of_unittest_check_tree_linkage();
of_unittest_check_phandles();
--
2.21.0.rc0.258.g878e2cd30e-goog
Powered by blists - more mailing lists