* [PATCH 1/2] of: unittest: let dtc generate __local_fixups__
@ 2017-11-16 18:05 Rob Herring
[not found] ` <20171116180545.12322-1-robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Rob Herring @ 2017-11-16 18:05 UTC (permalink / raw)
To: devicetree-u79uwXL29TY76Z2rM5mHXA
Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA, Frank Rowand
Remove the manually added __local_fixups__ because dtc can now generate
them. This also fixes a new warning in the process:
drivers/of/unittest-data/testcases.dtb: Warning (interrupts_extended_property): Could not get phandle node for /__local_fixups__/testcase-data/interrupts/interrupts-extended0:interrupts-extended(cell 3)
Signed-off-by: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
---
drivers/of/unittest-data/testcases.dts | 56 ++--------------------------------
1 file changed, 2 insertions(+), 54 deletions(-)
diff --git a/drivers/of/unittest-data/testcases.dts b/drivers/of/unittest-data/testcases.dts
index 12f7c3d649c8..ac616ad18ea6 100644
--- a/drivers/of/unittest-data/testcases.dts
+++ b/drivers/of/unittest-data/testcases.dts
@@ -1,4 +1,6 @@
/dts-v1/;
+/plugin/;
+
/ {
testcase-data {
changeset {
@@ -23,57 +25,3 @@
* The format of this data may be subject to change. For the time being consider
* this a kernel-internal data format.
*/
-/ { __local_fixups__ {
- testcase-data {
- phandle-tests {
- consumer-a {
- phandle-list = <0x00000000 0x00000008
- 0x00000018 0x00000028
- 0x00000034 0x00000038>;
- phandle-list-bad-args = <0x00000000 0x0000000c>;
- };
- };
- interrupts {
- intmap0 {
- interrupt-map = <0x00000004 0x00000010
- 0x00000024 0x00000034>;
- };
- intmap1 {
- interrupt-map = <0x0000000c>;
- };
- interrupts0 {
- interrupt-parent = <0x00000000>;
- };
- interrupts1 {
- interrupt-parent = <0x00000000>;
- };
- interrupts-extended0 {
- interrupts-extended = <0x00000000 0x00000008
- 0x00000018 0x00000024
- 0x0000002c 0x00000034
- 0x0000003c>;
- };
- };
- testcase-device1 {
- interrupt-parent = <0x00000000>;
- };
- testcase-device2 {
- interrupt-parent = <0x00000000>;
- };
- overlay2 {
- fragment@0 {
- target = <0x00000000>;
- };
- };
- overlay3 {
- fragment@0 {
- target = <0x00000000>;
- };
- };
- overlay4 {
- fragment@0 {
- target = <0x00000000>;
- };
- };
- };
-}; };
--
2.14.1
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 4+ messages in thread[parent not found: <20171116180545.12322-1-robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>]
* [PATCH 2/2] of: unittest: disable interrupts_property warning [not found] ` <20171116180545.12322-1-robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> @ 2017-11-16 18:05 ` Rob Herring 2017-11-16 18:34 ` [PATCH 1/2] of: unittest: let dtc generate __local_fixups__ Frank Rowand 1 sibling, 0 replies; 4+ messages in thread From: Rob Herring @ 2017-11-16 18:05 UTC (permalink / raw) To: devicetree-u79uwXL29TY76Z2rM5mHXA Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA, Frank Rowand The testcases.dts has purposely bad data which now generates a dtc warning: drivers/of/unittest-data/testcases.dtb: Warning (interrupts_property): interrupts size is (4), expected multiple of 8 in /testcase-data/testcase-device2 Disable this warning for now. The proper solution is to split the unit tests into good and bad data. Signed-off-by: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> --- drivers/of/unittest-data/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/of/unittest-data/Makefile b/drivers/of/unittest-data/Makefile index 2d135fba94c1..84b3bc44c0b4 100644 --- a/drivers/of/unittest-data/Makefile +++ b/drivers/of/unittest-data/Makefile @@ -1,3 +1,4 @@ +DTC_FLAGS_testcases := -Wno-interrupts_property obj-y += testcases.dtb.o targets += testcases.dtb testcases.dtb.S -- 2.14.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] of: unittest: let dtc generate __local_fixups__ [not found] ` <20171116180545.12322-1-robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> 2017-11-16 18:05 ` [PATCH 2/2] of: unittest: disable interrupts_property warning Rob Herring @ 2017-11-16 18:34 ` Frank Rowand [not found] ` <fb992198-d55c-0d06-3f19-0444d0c292d3-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 1 sibling, 1 reply; 4+ messages in thread From: Frank Rowand @ 2017-11-16 18:34 UTC (permalink / raw) To: Rob Herring, devicetree-u79uwXL29TY76Z2rM5mHXA Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA On 11/16/17 13:05, Rob Herring wrote: > Remove the manually added __local_fixups__ because dtc can now generate > them. This also fixes a new warning in the process: > > drivers/of/unittest-data/testcases.dtb: Warning (interrupts_extended_property): Could not get phandle node for /__local_fixups__/testcase-data/interrupts/interrupts-extended0:interrupts-extended(cell 3) > > Signed-off-by: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> > --- > drivers/of/unittest-data/testcases.dts | 56 ++-------------------------------- > 1 file changed, 2 insertions(+), 54 deletions(-) > > diff --git a/drivers/of/unittest-data/testcases.dts b/drivers/of/unittest-data/testcases.dts > index 12f7c3d649c8..ac616ad18ea6 100644 > --- a/drivers/of/unittest-data/testcases.dts > +++ b/drivers/of/unittest-data/testcases.dts > @@ -1,4 +1,6 @@ > /dts-v1/; > +/plugin/; > + > / { > testcase-data { > changeset { > @@ -23,57 +25,3 @@ > * The format of this data may be subject to change. For the time being consider > * this a kernel-internal data format. > */ > -/ { __local_fixups__ { > - testcase-data { > - phandle-tests { > - consumer-a { < snip > You should also delete the comment immediately above that describes the removed lines. -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <fb992198-d55c-0d06-3f19-0444d0c292d3-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: [PATCH 1/2] of: unittest: let dtc generate __local_fixups__ [not found] ` <fb992198-d55c-0d06-3f19-0444d0c292d3-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2017-11-16 18:42 ` Rob Herring 0 siblings, 0 replies; 4+ messages in thread From: Rob Herring @ 2017-11-16 18:42 UTC (permalink / raw) To: Frank Rowand Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On Thu, Nov 16, 2017 at 12:34 PM, Frank Rowand <frowand.list-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > On 11/16/17 13:05, Rob Herring wrote: >> Remove the manually added __local_fixups__ because dtc can now generate >> them. This also fixes a new warning in the process: >> >> drivers/of/unittest-data/testcases.dtb: Warning (interrupts_extended_property): Could not get phandle node for /__local_fixups__/testcase-data/interrupts/interrupts-extended0:interrupts-extended(cell 3) >> >> Signed-off-by: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> >> --- >> drivers/of/unittest-data/testcases.dts | 56 ++-------------------------------- >> 1 file changed, 2 insertions(+), 54 deletions(-) >> >> diff --git a/drivers/of/unittest-data/testcases.dts b/drivers/of/unittest-data/testcases.dts >> index 12f7c3d649c8..ac616ad18ea6 100644 >> --- a/drivers/of/unittest-data/testcases.dts >> +++ b/drivers/of/unittest-data/testcases.dts >> @@ -1,4 +1,6 @@ >> /dts-v1/; >> +/plugin/; >> + >> / { >> testcase-data { >> changeset { >> @@ -23,57 +25,3 @@ >> * The format of this data may be subject to change. For the time being consider >> * this a kernel-internal data format. >> */ >> -/ { __local_fixups__ { >> - testcase-data { >> - phandle-tests { >> - consumer-a { > > < snip > > > You should also delete the comment immediately above that describes the removed lines. Ah yes, I meant to do that. Rob -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-11-16 18:42 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-16 18:05 [PATCH 1/2] of: unittest: let dtc generate __local_fixups__ Rob Herring
[not found] ` <20171116180545.12322-1-robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2017-11-16 18:05 ` [PATCH 2/2] of: unittest: disable interrupts_property warning Rob Herring
2017-11-16 18:34 ` [PATCH 1/2] of: unittest: let dtc generate __local_fixups__ Frank Rowand
[not found] ` <fb992198-d55c-0d06-3f19-0444d0c292d3-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-11-16 18:42 ` Rob Herring
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).