* [PATCH v3] of: unittest: unflatten device tree on UML when testing
@ 2019-02-19 23:54 Brendan Higgins
2019-02-20 1:49 ` Frank Rowand
0 siblings, 1 reply; 2+ messages in thread
From: Brendan Higgins @ 2019-02-19 23:54 UTC (permalink / raw)
To: robh+dt, frowand.list, mcgrof; +Cc: devicetree, linux-kernel, Brendan Higgins
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@google.com>
---
drivers/of/unittest.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c
index 84427384654d5..98f0dfc91c2a3 100644
--- a/drivers/of/unittest.c
+++ b/drivers/of/unittest.c
@@ -2514,6 +2514,10 @@ static int __init of_unittest(void)
int res;
/* adding data for unittest */
+
+ if (IS_ENABLED(CONFIG_UML))
+ unittest_unflatten_overlay_base();
+
res = unittest_data_add();
if (res)
return res;
--
2.21.0.rc0.258.g878e2cd30e-goog
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v3] of: unittest: unflatten device tree on UML when testing
2019-02-19 23:54 [PATCH v3] of: unittest: unflatten device tree on UML when testing Brendan Higgins
@ 2019-02-20 1:49 ` Frank Rowand
0 siblings, 0 replies; 2+ messages in thread
From: Frank Rowand @ 2019-02-20 1:49 UTC (permalink / raw)
To: Brendan Higgins, robh+dt, mcgrof; +Cc: devicetree, linux-kernel
On 2/19/19 3:54 PM, Brendan Higgins wrote:
> 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@google.com>
> ---
> drivers/of/unittest.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c
> index 84427384654d5..98f0dfc91c2a3 100644
> --- a/drivers/of/unittest.c
> +++ b/drivers/of/unittest.c
> @@ -2514,6 +2514,10 @@ static int __init of_unittest(void)
> int res;
>
> /* adding data for unittest */
> +
> + if (IS_ENABLED(CONFIG_UML))
> + unittest_unflatten_overlay_base();
> +
> res = unittest_data_add();
> if (res)
> return res;
>
Reviewed-by: Frank Rowand <frank.rowand@sony.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-02-20 1:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-19 23:54 [PATCH v3] of: unittest: unflatten device tree on UML when testing Brendan Higgins
2019-02-20 1:49 ` Frank Rowand
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).