linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] clk: vc5: Use "idt,voltage-microvolt" instead of "idt,voltage-microvolts"
@ 2020-12-18 12:52 Geert Uytterhoeven
  2020-12-18 22:18 ` Luca Ceresoli
  2020-12-20  0:09 ` Stephen Boyd
  0 siblings, 2 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2020-12-18 12:52 UTC (permalink / raw)
  To: Luca Ceresoli, Michael Turquette, Stephen Boyd, Adam Ford, Rob Herring
  Cc: linux-clk, devicetree, linux-renesas-soc, linux-kernel,
	Geert Uytterhoeven

Commit 45c940184b501fc6 ("dt-bindings: clk: versaclock5: convert to
yaml") accidentally changed "idt,voltage-microvolts" to
"idt,voltage-microvolt" in the DT bindings, while the driver still used
the former.

Update the driver to match the bindings, as
Documentation/devicetree/bindings/property-units.txt actually recommends
using "microvolt".

Fixes: 260249f929e81d3d ("clk: vc5: Enable addition output configurations of the Versaclock")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
There are no upstream users yet, but they are planned for v5.12, so I
think this should be in v5.11-rc1.

Thanks!
---
 drivers/clk/clk-versaclock5.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/clk/clk-versaclock5.c b/drivers/clk/clk-versaclock5.c
index c90460e7ef2153fe..43db67337bc06824 100644
--- a/drivers/clk/clk-versaclock5.c
+++ b/drivers/clk/clk-versaclock5.c
@@ -739,8 +739,8 @@ static int vc5_update_power(struct device_node *np_output,
 {
 	u32 value;
 
-	if (!of_property_read_u32(np_output,
-				  "idt,voltage-microvolts", &value)) {
+	if (!of_property_read_u32(np_output, "idt,voltage-microvolt",
+				  &value)) {
 		clk_out->clk_output_cfg0_mask |= VC5_CLK_OUTPUT_CFG0_PWR_MASK;
 		switch (value) {
 		case 1800000:
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] clk: vc5: Use "idt,voltage-microvolt" instead of "idt,voltage-microvolts"
  2020-12-18 12:52 [PATCH] clk: vc5: Use "idt,voltage-microvolt" instead of "idt,voltage-microvolts" Geert Uytterhoeven
@ 2020-12-18 22:18 ` Luca Ceresoli
  2020-12-19 11:31   ` Geert Uytterhoeven
  2020-12-20  0:09 ` Stephen Boyd
  1 sibling, 1 reply; 4+ messages in thread
From: Luca Ceresoli @ 2020-12-18 22:18 UTC (permalink / raw)
  To: Geert Uytterhoeven, Michael Turquette, Stephen Boyd, Adam Ford,
	Rob Herring
  Cc: linux-clk, devicetree, linux-renesas-soc, linux-kernel

Hi Geert,

On 18/12/20 13:52, Geert Uytterhoeven wrote:
> Commit 45c940184b501fc6 ("dt-bindings: clk: versaclock5: convert to
> yaml") accidentally changed "idt,voltage-microvolts" to
> "idt,voltage-microvolt" in the DT bindings, while the driver still used
> the former.
> 
> Update the driver to match the bindings, as
> Documentation/devicetree/bindings/property-units.txt actually recommends
> using "microvolt".
> 
> Fixes: 260249f929e81d3d ("clk: vc5: Enable addition output configurations of the Versaclock")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
> There are no upstream users yet, but they are planned for v5.12, so I
> think this should be in v5.11-rc1.
> 
> Thanks!
> ---
>  drivers/clk/clk-versaclock5.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/clk/clk-versaclock5.c b/drivers/clk/clk-versaclock5.c
> index c90460e7ef2153fe..43db67337bc06824 100644
> --- a/drivers/clk/clk-versaclock5.c
> +++ b/drivers/clk/clk-versaclock5.c
> @@ -739,8 +739,8 @@ static int vc5_update_power(struct device_node *np_output,
>  {
>  	u32 value;
>  
> -	if (!of_property_read_u32(np_output,
> -				  "idt,voltage-microvolts", &value)) {
> +	if (!of_property_read_u32(np_output, "idt,voltage-microvolt",
> +				  &value)) {

Reviewed-by: Luca Ceresoli <luca@lucaceresoli.net>

Now the example in the bindings needs the same fix. I guess you doing it
in your "Miscellaneous fixes and improvements" v2 series, otherwise I
can do that.

Thanks,
-- 
Luca

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] clk: vc5: Use "idt,voltage-microvolt" instead of "idt,voltage-microvolts"
  2020-12-18 22:18 ` Luca Ceresoli
@ 2020-12-19 11:31   ` Geert Uytterhoeven
  0 siblings, 0 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2020-12-19 11:31 UTC (permalink / raw)
  To: Luca Ceresoli
  Cc: Geert Uytterhoeven, Michael Turquette, Stephen Boyd, Adam Ford,
	Rob Herring, linux-clk,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	Linux-Renesas, Linux Kernel Mailing List

Hi Luca,

On Fri, Dec 18, 2020 at 11:18 PM Luca Ceresoli <luca@lucaceresoli.net> wrote:
> On 18/12/20 13:52, Geert Uytterhoeven wrote:
> > Commit 45c940184b501fc6 ("dt-bindings: clk: versaclock5: convert to
> > yaml") accidentally changed "idt,voltage-microvolts" to
> > "idt,voltage-microvolt" in the DT bindings, while the driver still used
> > the former.
> >
> > Update the driver to match the bindings, as
> > Documentation/devicetree/bindings/property-units.txt actually recommends
> > using "microvolt".
> >
> > Fixes: 260249f929e81d3d ("clk: vc5: Enable addition output configurations of the Versaclock")
> > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> > ---
> > There are no upstream users yet, but they are planned for v5.12, so I
> > think this should be in v5.11-rc1.
> >
> > Thanks!
> > ---
> >  drivers/clk/clk-versaclock5.c | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/clk/clk-versaclock5.c b/drivers/clk/clk-versaclock5.c
> > index c90460e7ef2153fe..43db67337bc06824 100644
> > --- a/drivers/clk/clk-versaclock5.c
> > +++ b/drivers/clk/clk-versaclock5.c
> > @@ -739,8 +739,8 @@ static int vc5_update_power(struct device_node *np_output,
> >  {
> >       u32 value;
> >
> > -     if (!of_property_read_u32(np_output,
> > -                               "idt,voltage-microvolts", &value)) {
> > +     if (!of_property_read_u32(np_output, "idt,voltage-microvolt",
> > +                               &value)) {
>
> Reviewed-by: Luca Ceresoli <luca@lucaceresoli.net>

Thanks!

> Now the example in the bindings needs the same fix. I guess you doing it
> in your "Miscellaneous fixes and improvements" v2 series, otherwise I
> can do that.

Yep, planned for v2.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] clk: vc5: Use "idt,voltage-microvolt" instead of "idt,voltage-microvolts"
  2020-12-18 12:52 [PATCH] clk: vc5: Use "idt,voltage-microvolt" instead of "idt,voltage-microvolts" Geert Uytterhoeven
  2020-12-18 22:18 ` Luca Ceresoli
@ 2020-12-20  0:09 ` Stephen Boyd
  1 sibling, 0 replies; 4+ messages in thread
From: Stephen Boyd @ 2020-12-20  0:09 UTC (permalink / raw)
  To: Adam Ford, Geert Uytterhoeven, Luca Ceresoli, Michael Turquette,
	Rob Herring
  Cc: linux-clk, devicetree, linux-renesas-soc, linux-kernel,
	Geert Uytterhoeven

Quoting Geert Uytterhoeven (2020-12-18 04:52:53)
> Commit 45c940184b501fc6 ("dt-bindings: clk: versaclock5: convert to
> yaml") accidentally changed "idt,voltage-microvolts" to
> "idt,voltage-microvolt" in the DT bindings, while the driver still used
> the former.
> 
> Update the driver to match the bindings, as
> Documentation/devicetree/bindings/property-units.txt actually recommends
> using "microvolt".
> 
> Fixes: 260249f929e81d3d ("clk: vc5: Enable addition output configurations of the Versaclock")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---

Applied to clk-next

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-12-20  0:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-18 12:52 [PATCH] clk: vc5: Use "idt,voltage-microvolt" instead of "idt,voltage-microvolts" Geert Uytterhoeven
2020-12-18 22:18 ` Luca Ceresoli
2020-12-19 11:31   ` Geert Uytterhoeven
2020-12-20  0:09 ` Stephen Boyd

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).