diff mbox series

ARM: dts: r8a779x: Add '#reset-cells' in cpg-mssr

Message ID 1510839357-11450-1-git-send-email-geert+renesas@glider.be
State New
Headers show
Series ARM: dts: r8a779x: Add '#reset-cells' in cpg-mssr | expand

Commit Message

Geert Uytterhoeven Nov. 16, 2017, 1:35 p.m. UTC
From: Arnd Bergmann <arnd@arndb.de>


With the latest dtc, we get many warnings about the missing
'#reset-cells' property in these controllers, e.g.:

arch/arm/boot/dts/r8a7790-lager.dtb: Warning (resets_property): Missing property '#reset-cells' in node /clock-controller@e6150000 or bad phandle (referred from /can@e6e80000:resets[0])
arch/arm/boot/dts/r8a7792-blanche.dtb: Warning (resets_property): Missing property '#reset-cells' in node /soc/clock-controller@e6150000 or bad phandle (referred from /soc/dma-controller@e6700000:resets[0])
arch/arm/boot/dts/r8a7792-wheat.dtb: Warning (resets_property): Missing property '#reset-cells' in node /soc/clock-controller@e6150000 or bad phandle (referred from /soc/ethernet@e6800000:resets[0])
arch/arm/boot/dts/r8a7793-gose.dtb: Warning (resets_property): Missing property '#reset-cells' in node /clock-controller@e6150000 or bad phandle (referred from /gpio@e6050000:resets[0])
arch/arm/boot/dts/r8a7794-alt.dtb: Warning (resets_property): Missing property '#reset-cells' in node /clock-controller@e6150000 or bad phandle (referred from /i2c@e6500000:resets[0])
arch/arm/boot/dts/r8a7794-silk.dtb: Warning (resets_property): Missing property '#reset-cells' in node /clock-controller@e6150000 or bad phandle (referred from /interrupt-controller@e61c0000:resets[0])

This adds it for the three r8a779x chips that were lacking it. The
binding mandates this as <1>, so this is the value I use.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>

[geert: Add fix for r8a7793.dtsi]
Fixes: 34fbd2b12761d111 ("ARM: dts: r8a7790: Add reset control properties")
Fixes: 6e11a322f1d7505d ("ARM: dts: r8a7792: Add reset control properties")
Fixes: 84fb19e1d201ba86 ("ARM: dts: r8a7793: Add reset control properties")
Fixes: 615beb759ca494a4 ("ARM: dts: r8a7794: Add reset control properties")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

---
 arch/arm/boot/dts/r8a7790.dtsi | 1 +
 arch/arm/boot/dts/r8a7792.dtsi | 1 +
 arch/arm/boot/dts/r8a7793.dtsi | 1 +
 arch/arm/boot/dts/r8a7794.dtsi | 1 +
 4 files changed, 4 insertions(+)

-- 
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Simon Horman Nov. 20, 2017, 9:49 a.m. UTC | #1
On Thu, Nov 16, 2017 at 02:35:57PM +0100, Geert Uytterhoeven wrote:
> From: Arnd Bergmann <arnd@arndb.de>

> 

> With the latest dtc, we get many warnings about the missing

> '#reset-cells' property in these controllers, e.g.:

> 

> arch/arm/boot/dts/r8a7790-lager.dtb: Warning (resets_property): Missing property '#reset-cells' in node /clock-controller@e6150000 or bad phandle (referred from /can@e6e80000:resets[0])

> arch/arm/boot/dts/r8a7792-blanche.dtb: Warning (resets_property): Missing property '#reset-cells' in node /soc/clock-controller@e6150000 or bad phandle (referred from /soc/dma-controller@e6700000:resets[0])

> arch/arm/boot/dts/r8a7792-wheat.dtb: Warning (resets_property): Missing property '#reset-cells' in node /soc/clock-controller@e6150000 or bad phandle (referred from /soc/ethernet@e6800000:resets[0])

> arch/arm/boot/dts/r8a7793-gose.dtb: Warning (resets_property): Missing property '#reset-cells' in node /clock-controller@e6150000 or bad phandle (referred from /gpio@e6050000:resets[0])

> arch/arm/boot/dts/r8a7794-alt.dtb: Warning (resets_property): Missing property '#reset-cells' in node /clock-controller@e6150000 or bad phandle (referred from /i2c@e6500000:resets[0])

> arch/arm/boot/dts/r8a7794-silk.dtb: Warning (resets_property): Missing property '#reset-cells' in node /clock-controller@e6150000 or bad phandle (referred from /interrupt-controller@e61c0000:resets[0])

> 

> This adds it for the three r8a779x chips that were lacking it. The

> binding mandates this as <1>, so this is the value I use.

> 

> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

> [geert: Add fix for r8a7793.dtsi]

> Fixes: 34fbd2b12761d111 ("ARM: dts: r8a7790: Add reset control properties")

> Fixes: 6e11a322f1d7505d ("ARM: dts: r8a7792: Add reset control properties")

> Fixes: 84fb19e1d201ba86 ("ARM: dts: r8a7793: Add reset control properties")

> Fixes: 615beb759ca494a4 ("ARM: dts: r8a7794: Add reset control properties")

> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>


Thanks for following up on this, its been fouling up my todo list for a
while now. Applied for v4.16.
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Geert Uytterhoeven Nov. 20, 2017, 9:57 a.m. UTC | #2
Hi Simon,

On Mon, Nov 20, 2017 at 10:49 AM, Simon Horman <horms@verge.net.au> wrote:
> On Thu, Nov 16, 2017 at 02:35:57PM +0100, Geert Uytterhoeven wrote:

>> From: Arnd Bergmann <arnd@arndb.de>

>>

>> With the latest dtc, we get many warnings about the missing

>> '#reset-cells' property in these controllers, e.g.:

>>

>> arch/arm/boot/dts/r8a7790-lager.dtb: Warning (resets_property): Missing property '#reset-cells' in node /clock-controller@e6150000 or bad phandle (referred from /can@e6e80000:resets[0])

>> arch/arm/boot/dts/r8a7792-blanche.dtb: Warning (resets_property): Missing property '#reset-cells' in node /soc/clock-controller@e6150000 or bad phandle (referred from /soc/dma-controller@e6700000:resets[0])

>> arch/arm/boot/dts/r8a7792-wheat.dtb: Warning (resets_property): Missing property '#reset-cells' in node /soc/clock-controller@e6150000 or bad phandle (referred from /soc/ethernet@e6800000:resets[0])

>> arch/arm/boot/dts/r8a7793-gose.dtb: Warning (resets_property): Missing property '#reset-cells' in node /clock-controller@e6150000 or bad phandle (referred from /gpio@e6050000:resets[0])

>> arch/arm/boot/dts/r8a7794-alt.dtb: Warning (resets_property): Missing property '#reset-cells' in node /clock-controller@e6150000 or bad phandle (referred from /i2c@e6500000:resets[0])

>> arch/arm/boot/dts/r8a7794-silk.dtb: Warning (resets_property): Missing property '#reset-cells' in node /clock-controller@e6150000 or bad phandle (referred from /interrupt-controller@e61c0000:resets[0])

>>

>> This adds it for the three r8a779x chips that were lacking it. The

>> binding mandates this as <1>, so this is the value I use.

>>

>> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

>> [geert: Add fix for r8a7793.dtsi]

>> Fixes: 34fbd2b12761d111 ("ARM: dts: r8a7790: Add reset control properties")

>> Fixes: 6e11a322f1d7505d ("ARM: dts: r8a7792: Add reset control properties")

>> Fixes: 84fb19e1d201ba86 ("ARM: dts: r8a7793: Add reset control properties")

>> Fixes: 615beb759ca494a4 ("ARM: dts: r8a7794: Add reset control properties")

>> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

>

> Thanks for following up on this, its been fouling up my todo list for a

> while now. Applied for v4.16.


As this is a fix for changes made in v4.15-rc1, don't we want it in v4.15?

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Simon Horman Nov. 20, 2017, 10:26 a.m. UTC | #3
On Mon, Nov 20, 2017 at 10:57:07AM +0100, Geert Uytterhoeven wrote:
> Hi Simon,

> 

> On Mon, Nov 20, 2017 at 10:49 AM, Simon Horman <horms@verge.net.au> wrote:

> > On Thu, Nov 16, 2017 at 02:35:57PM +0100, Geert Uytterhoeven wrote:

> >> From: Arnd Bergmann <arnd@arndb.de>

> >>

> >> With the latest dtc, we get many warnings about the missing

> >> '#reset-cells' property in these controllers, e.g.:

> >>

> >> arch/arm/boot/dts/r8a7790-lager.dtb: Warning (resets_property): Missing property '#reset-cells' in node /clock-controller@e6150000 or bad phandle (referred from /can@e6e80000:resets[0])

> >> arch/arm/boot/dts/r8a7792-blanche.dtb: Warning (resets_property): Missing property '#reset-cells' in node /soc/clock-controller@e6150000 or bad phandle (referred from /soc/dma-controller@e6700000:resets[0])

> >> arch/arm/boot/dts/r8a7792-wheat.dtb: Warning (resets_property): Missing property '#reset-cells' in node /soc/clock-controller@e6150000 or bad phandle (referred from /soc/ethernet@e6800000:resets[0])

> >> arch/arm/boot/dts/r8a7793-gose.dtb: Warning (resets_property): Missing property '#reset-cells' in node /clock-controller@e6150000 or bad phandle (referred from /gpio@e6050000:resets[0])

> >> arch/arm/boot/dts/r8a7794-alt.dtb: Warning (resets_property): Missing property '#reset-cells' in node /clock-controller@e6150000 or bad phandle (referred from /i2c@e6500000:resets[0])

> >> arch/arm/boot/dts/r8a7794-silk.dtb: Warning (resets_property): Missing property '#reset-cells' in node /clock-controller@e6150000 or bad phandle (referred from /interrupt-controller@e61c0000:resets[0])

> >>

> >> This adds it for the three r8a779x chips that were lacking it. The

> >> binding mandates this as <1>, so this is the value I use.

> >>

> >> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

> >> [geert: Add fix for r8a7793.dtsi]

> >> Fixes: 34fbd2b12761d111 ("ARM: dts: r8a7790: Add reset control properties")

> >> Fixes: 6e11a322f1d7505d ("ARM: dts: r8a7792: Add reset control properties")

> >> Fixes: 84fb19e1d201ba86 ("ARM: dts: r8a7793: Add reset control properties")

> >> Fixes: 615beb759ca494a4 ("ARM: dts: r8a7794: Add reset control properties")

> >> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

> >

> > Thanks for following up on this, its been fouling up my todo list for a

> > while now. Applied for v4.16.

> 

> As this is a fix for changes made in v4.15-rc1, don't we want it in v4.15?


Do the changes have any run-time effect?
If not I'd prefer not to push them into v4.15 as fixes.
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Arnd Bergmann Nov. 20, 2017, 10:30 a.m. UTC | #4
On Mon, Nov 20, 2017 at 11:26 AM, Simon Horman <horms@verge.net.au> wrote:
> On Mon, Nov 20, 2017 at 10:57:07AM +0100, Geert Uytterhoeven wrote:

>> Hi Simon,

>>

>> On Mon, Nov 20, 2017 at 10:49 AM, Simon Horman <horms@verge.net.au> wrote:

>> > On Thu, Nov 16, 2017 at 02:35:57PM +0100, Geert Uytterhoeven wrote:

>> >> From: Arnd Bergmann <arnd@arndb.de>

>> >>

>> >> With the latest dtc, we get many warnings about the missing

>> >> '#reset-cells' property in these controllers, e.g.:

>> >>

>> >> arch/arm/boot/dts/r8a7790-lager.dtb: Warning (resets_property): Missing property '#reset-cells' in node /clock-controller@e6150000 or bad phandle (referred from /can@e6e80000:resets[0])

>> >> arch/arm/boot/dts/r8a7792-blanche.dtb: Warning (resets_property): Missing property '#reset-cells' in node /soc/clock-controller@e6150000 or bad phandle (referred from /soc/dma-controller@e6700000:resets[0])

>> >> arch/arm/boot/dts/r8a7792-wheat.dtb: Warning (resets_property): Missing property '#reset-cells' in node /soc/clock-controller@e6150000 or bad phandle (referred from /soc/ethernet@e6800000:resets[0])

>> >> arch/arm/boot/dts/r8a7793-gose.dtb: Warning (resets_property): Missing property '#reset-cells' in node /clock-controller@e6150000 or bad phandle (referred from /gpio@e6050000:resets[0])

>> >> arch/arm/boot/dts/r8a7794-alt.dtb: Warning (resets_property): Missing property '#reset-cells' in node /clock-controller@e6150000 or bad phandle (referred from /i2c@e6500000:resets[0])

>> >> arch/arm/boot/dts/r8a7794-silk.dtb: Warning (resets_property): Missing property '#reset-cells' in node /clock-controller@e6150000 or bad phandle (referred from /interrupt-controller@e61c0000:resets[0])

>> >>

>> >> This adds it for the three r8a779x chips that were lacking it. The

>> >> binding mandates this as <1>, so this is the value I use.

>> >>

>> >> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

>> >> [geert: Add fix for r8a7793.dtsi]

>> >> Fixes: 34fbd2b12761d111 ("ARM: dts: r8a7790: Add reset control properties")

>> >> Fixes: 6e11a322f1d7505d ("ARM: dts: r8a7792: Add reset control properties")

>> >> Fixes: 84fb19e1d201ba86 ("ARM: dts: r8a7793: Add reset control properties")

>> >> Fixes: 615beb759ca494a4 ("ARM: dts: r8a7794: Add reset control properties")

>> >> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

>> >

>> > Thanks for following up on this, its been fouling up my todo list for a

>> > while now. Applied for v4.16.

>>

>> As this is a fix for changes made in v4.15-rc1, don't we want it in v4.15?

>

> Do the changes have any run-time effect?

> If not I'd prefer not to push them into v4.15 as fixes.


The main effect right now is that we're up from no warnings in the
default build to
hundreds of warnings, which is really annoying. Obviously there is
little gain in
fixing these but not the other warnings that were introduced, but I would either
want to fix them all, or disable the warning for one more release.

Rob, what do you think we should do here?

       Arnd
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Simon Horman Nov. 20, 2017, 10:34 a.m. UTC | #5
On Mon, Nov 20, 2017 at 11:30:49AM +0100, Arnd Bergmann wrote:
> On Mon, Nov 20, 2017 at 11:26 AM, Simon Horman <horms@verge.net.au> wrote:

> > On Mon, Nov 20, 2017 at 10:57:07AM +0100, Geert Uytterhoeven wrote:

> >> Hi Simon,

> >>

> >> On Mon, Nov 20, 2017 at 10:49 AM, Simon Horman <horms@verge.net.au> wrote:

> >> > On Thu, Nov 16, 2017 at 02:35:57PM +0100, Geert Uytterhoeven wrote:

> >> >> From: Arnd Bergmann <arnd@arndb.de>

> >> >>

> >> >> With the latest dtc, we get many warnings about the missing

> >> >> '#reset-cells' property in these controllers, e.g.:

> >> >>

> >> >> arch/arm/boot/dts/r8a7790-lager.dtb: Warning (resets_property): Missing property '#reset-cells' in node /clock-controller@e6150000 or bad phandle (referred from /can@e6e80000:resets[0])

> >> >> arch/arm/boot/dts/r8a7792-blanche.dtb: Warning (resets_property): Missing property '#reset-cells' in node /soc/clock-controller@e6150000 or bad phandle (referred from /soc/dma-controller@e6700000:resets[0])

> >> >> arch/arm/boot/dts/r8a7792-wheat.dtb: Warning (resets_property): Missing property '#reset-cells' in node /soc/clock-controller@e6150000 or bad phandle (referred from /soc/ethernet@e6800000:resets[0])

> >> >> arch/arm/boot/dts/r8a7793-gose.dtb: Warning (resets_property): Missing property '#reset-cells' in node /clock-controller@e6150000 or bad phandle (referred from /gpio@e6050000:resets[0])

> >> >> arch/arm/boot/dts/r8a7794-alt.dtb: Warning (resets_property): Missing property '#reset-cells' in node /clock-controller@e6150000 or bad phandle (referred from /i2c@e6500000:resets[0])

> >> >> arch/arm/boot/dts/r8a7794-silk.dtb: Warning (resets_property): Missing property '#reset-cells' in node /clock-controller@e6150000 or bad phandle (referred from /interrupt-controller@e61c0000:resets[0])

> >> >>

> >> >> This adds it for the three r8a779x chips that were lacking it. The

> >> >> binding mandates this as <1>, so this is the value I use.

> >> >>

> >> >> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

> >> >> [geert: Add fix for r8a7793.dtsi]

> >> >> Fixes: 34fbd2b12761d111 ("ARM: dts: r8a7790: Add reset control properties")

> >> >> Fixes: 6e11a322f1d7505d ("ARM: dts: r8a7792: Add reset control properties")

> >> >> Fixes: 84fb19e1d201ba86 ("ARM: dts: r8a7793: Add reset control properties")

> >> >> Fixes: 615beb759ca494a4 ("ARM: dts: r8a7794: Add reset control properties")

> >> >> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

> >> >

> >> > Thanks for following up on this, its been fouling up my todo list for a

> >> > while now. Applied for v4.16.

> >>

> >> As this is a fix for changes made in v4.15-rc1, don't we want it in v4.15?

> >

> > Do the changes have any run-time effect?

> > If not I'd prefer not to push them into v4.15 as fixes.

> 

> The main effect right now is that we're up from no warnings in the

> default build to

> hundreds of warnings, which is really annoying. Obviously there is

> little gain in

> fixing these but not the other warnings that were introduced, but I would either

> want to fix them all, or disable the warning for one more release.

> 

> Rob, what do you think we should do here?


Ok, I'll queued these up as fixes for v4.15 as it seems to move things
in your desired direction.
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi
index e2c530c330a8eb7e..450bfc0e9796a557 100644
--- a/arch/arm/boot/dts/r8a7790.dtsi
+++ b/arch/arm/boot/dts/r8a7790.dtsi
@@ -1202,6 +1202,7 @@ 
 		clock-names = "extal", "usb_extal";
 		#clock-cells = <2>;
 		#power-domain-cells = <0>;
+		#reset-cells = <1>;
 	};
 
 	prr: chipid@ff000044 {
diff --git a/arch/arm/boot/dts/r8a7792.dtsi b/arch/arm/boot/dts/r8a7792.dtsi
index 7b394273031e9a90..ac05fdb91798b88d 100644
--- a/arch/arm/boot/dts/r8a7792.dtsi
+++ b/arch/arm/boot/dts/r8a7792.dtsi
@@ -830,6 +830,7 @@ 
 			clock-names = "extal";
 			#clock-cells = <2>;
 			#power-domain-cells = <0>;
+			#reset-cells = <1>;
 		};
 	};
 
diff --git a/arch/arm/boot/dts/r8a7793.dtsi b/arch/arm/boot/dts/r8a7793.dtsi
index a83c2e9c5723fe2c..61dd291d907da2f5 100644
--- a/arch/arm/boot/dts/r8a7793.dtsi
+++ b/arch/arm/boot/dts/r8a7793.dtsi
@@ -1088,6 +1088,7 @@ 
 		clock-names = "extal", "usb_extal";
 		#clock-cells = <2>;
 		#power-domain-cells = <0>;
+		#reset-cells = <1>;
 	};
 
 	rst: reset-controller@e6160000 {
diff --git a/arch/arm/boot/dts/r8a7794.dtsi b/arch/arm/boot/dts/r8a7794.dtsi
index 96e405e70d9aeea5..106b4e1649ff695b 100644
--- a/arch/arm/boot/dts/r8a7794.dtsi
+++ b/arch/arm/boot/dts/r8a7794.dtsi
@@ -1106,6 +1106,7 @@ 
 		clock-names = "extal", "usb_extal";
 		#clock-cells = <2>;
 		#power-domain-cells = <0>;
+		#reset-cells = <1>;
 	};
 
 	rst: reset-controller@e6160000 {