All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 1/1] dts: bindings: trivial clock bindings doc fixes
@ 2013-12-02 15:52 Gerhard Sittig
       [not found] ` <1385999579-3184-1-git-send-email-gsi-ynQEQJNshbs@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Gerhard Sittig @ 2013-12-02 15:52 UTC (permalink / raw)
  To: devicetree-u79uwXL29TY76Z2rM5mHXA
  Cc: Gerhard Sittig, Rob Herring, Pawel Moll, Mark Rutland,
	Stephen Warren, Ian Campbell

fix a typo in the "clock specifiers" discussion,
clarify that clock specifiers (the integer cells
part that goes with the phandle) may be empty

Cc: Rob Herring <rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org>
Cc: Pawel Moll <pawel.moll-5wv7dgnIgG8@public.gmane.org>
Cc: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>
Cc: Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
Cc: Ian Campbell <ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org>
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Signed-off-by: Gerhard Sittig <gsi-ynQEQJNshbs@public.gmane.org>
---

this may sound like nit picking, but from an earlier explanation by Mark
Rutland I learned that a reference always consists of a phandle and a
specifier, that the specifier is the sequence of integer cells that
accompany the phandle, and that the phandle "by intuition might be
expected to" be part of the specifier but specificly is not (and shall
not, to keep the existing documentation consistent)

since I was fixing the typo, and had the above information, I could not
resist but had to add the "may be zero cells" detail in bypassing

found no other issue in this file -- don't worry, won't emit an endless
stream of tiny trivial changes, this one is all there is :)

 Documentation/devicetree/bindings/clock/clock-bindings.txt |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/clock/clock-bindings.txt b/Documentation/devicetree/bindings/clock/clock-bindings.txt
index eb65d417f8c4..7c52c29d99fa 100644
--- a/Documentation/devicetree/bindings/clock/clock-bindings.txt
+++ b/Documentation/devicetree/bindings/clock/clock-bindings.txt
@@ -5,7 +5,7 @@ Sources of clock signal can be represented by any node in the device
 tree.  Those nodes are designated as clock providers.  Clock consumer
 nodes use a phandle and clock specifier pair to connect clock provider
 outputs to clock inputs.  Similar to the gpio specifiers, a clock
-specifier is an array of one more more cells identifying the clock
+specifier is an array of zero, one or more cells identifying the clock
 output on a device.  The length of a clock specifier is defined by the
 value of a #clock-cells property in the clock provider node.
 
-- 
1.7.10.4

--
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 v1 1/1] dts: bindings: trivial clock bindings doc fixes
       [not found] ` <1385999579-3184-1-git-send-email-gsi-ynQEQJNshbs@public.gmane.org>
@ 2013-12-02 16:18   ` Mark Rutland
       [not found]     ` <20131202161843.GM12952-NuALmloUBlrZROr8t4l/smS4ubULX0JqMm0uRHvK7Nw@public.gmane.org>
  2013-12-07 13:22   ` [PATCH v2 1/1] dts: bindings: doc fix, zero cell clock specifiers are valid Gerhard Sittig
  1 sibling, 1 reply; 4+ messages in thread
From: Mark Rutland @ 2013-12-02 16:18 UTC (permalink / raw)
  To: Gerhard Sittig
  Cc: devicetree-u79uwXL29TY76Z2rM5mHXA,
	rob.herring-bsGFqQB8/DxBDgjK7y7TUQ, Pawel Moll, Stephen Warren,
	Ian Campbell, Mike Turquette

On Mon, Dec 02, 2013 at 03:52:59PM +0000, Gerhard Sittig wrote:
> fix a typo in the "clock specifiers" discussion,
> clarify that clock specifiers (the integer cells
> part that goes with the phandle) may be empty
> 
> Cc: Rob Herring <rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org>
> Cc: Pawel Moll <pawel.moll-5wv7dgnIgG8@public.gmane.org>
> Cc: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>
> Cc: Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
> Cc: Ian Campbell <ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org>
> Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> Signed-off-by: Gerhard Sittig <gsi-ynQEQJNshbs@public.gmane.org>
> ---
> 
> this may sound like nit picking, but from an earlier explanation by Mark
> Rutland I learned that a reference always consists of a phandle and a
> specifier, that the specifier is the sequence of integer cells that
> accompany the phandle, and that the phandle "by intuition might be
> expected to" be part of the specifier but specificly is not (and shall
> not, to keep the existing documentation consistent)
> 
> since I was fixing the typo, and had the above information, I could not
> resist but had to add the "may be zero cells" detail in bypassing

It would be nice to move a bit of this into the patch title and
description that'll survive as the commit (the title's a bit vague).

> 
> found no other issue in this file -- don't worry, won't emit an endless
> stream of tiny trivial changes, this one is all there is :)
> 
>  Documentation/devicetree/bindings/clock/clock-bindings.txt |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/Documentation/devicetree/bindings/clock/clock-bindings.txt b/Documentation/devicetree/bindings/clock/clock-bindings.txt
> index eb65d417f8c4..7c52c29d99fa 100644
> --- a/Documentation/devicetree/bindings/clock/clock-bindings.txt
> +++ b/Documentation/devicetree/bindings/clock/clock-bindings.txt
> @@ -5,7 +5,7 @@ Sources of clock signal can be represented by any node in the device
>  tree.  Those nodes are designated as clock providers.  Clock consumer
>  nodes use a phandle and clock specifier pair to connect clock provider
>  outputs to clock inputs.  Similar to the gpio specifiers, a clock
> -specifier is an array of one more more cells identifying the clock
> +specifier is an array of zero, one or more cells identifying the clock

To nit pick slightly further, how about just "zero or more"?

Otherwise, this looks good to me!

Acked-by: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>

>  output on a device.  The length of a clock specifier is defined by the
>  value of a #clock-cells property in the clock provider node.
>  
> -- 
> 1.7.10.4
> 
> 
--
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

* Re: [PATCH v1 1/1] dts: bindings: trivial clock bindings doc fixes
       [not found]     ` <20131202161843.GM12952-NuALmloUBlrZROr8t4l/smS4ubULX0JqMm0uRHvK7Nw@public.gmane.org>
@ 2013-12-02 20:13       ` Gerhard Sittig
  0 siblings, 0 replies; 4+ messages in thread
From: Gerhard Sittig @ 2013-12-02 20:13 UTC (permalink / raw)
  To: Mark Rutland
  Cc: devicetree-u79uwXL29TY76Z2rM5mHXA,
	rob.herring-bsGFqQB8/DxBDgjK7y7TUQ, Pawel Moll, Stephen Warren,
	Ian Campbell, Mike Turquette

On Mon, Dec 02, 2013 at 16:18 +0000, Mark Rutland wrote:
> 
> On Mon, Dec 02, 2013 at 03:52:59PM +0000, Gerhard Sittig wrote:
> > fix a typo in the "clock specifiers" discussion,
> > clarify that clock specifiers (the integer cells
> > part that goes with the phandle) may be empty
> > 
> > [ ... Cc: list ... ]
> > ---
> > 
> > this may sound like nit picking, but from an earlier explanation by Mark
> > Rutland I learned that a reference always consists of a phandle and a
> > specifier, that the specifier is the sequence of integer cells that
> > accompany the phandle, and that the phandle "by intuition might be
> > expected to" be part of the specifier but specificly is not (and shall
> > not, to keep the existing documentation consistent)
> > 
> > since I was fixing the typo, and had the above information, I could not
> > resist but had to add the "may be zero cells" detail in bypassing
> 
> It would be nice to move a bit of this into the patch title and
> description that'll survive as the commit (the title's a bit vague).

Here is what I could come up with, without exceeding the acceptable
title length.  The title then becomes less generic than "trivial clock
bindings doc fixes", and better reflects the change in terse listings.
Agreed on that this is a necessary improvement.

The more verbose commit message still feels a bit lengthy with all the
details squeezed into it, yet should no longer be as clumsy and "weird"
as the original message was.


I'm citing the text here instead of re-submitting the patch in a rapid
followup.  Will create v2 when this suggested text turns out to be more
acceptable.

  dts: bindings: doc fix, zero cell clock specifiers are valid

  fix a typo in the common clock binding's "clock specifiers" discussion,
  and clarify the fact that the sequence of integer cells that go with the
  clock provider's phandle and form "the clock specifier" may be empty


> > --- a/Documentation/devicetree/bindings/clock/clock-bindings.txt
> > +++ b/Documentation/devicetree/bindings/clock/clock-bindings.txt
> > @@ -5,7 +5,7 @@ Sources of clock signal can be represented by any node in the device
> >  tree.  Those nodes are designated as clock providers.  Clock consumer
> >  nodes use a phandle and clock specifier pair to connect clock provider
> >  outputs to clock inputs.  Similar to the gpio specifiers, a clock
> > -specifier is an array of one more more cells identifying the clock
> > +specifier is an array of zero, one or more cells identifying the clock
> >  output on a device.  The length of a clock specifier is defined by the
> >  value of a #clock-cells property in the clock provider node.
> 
> To nit pick slightly further, how about just "zero or more"?

Can't tell how the "zero or more" escaped me.  Thank you, took it!  Will
be in the patch upon re-submission.

Everything else from the above "motivation, background" comment already
was in the binding document.  The context of my change has all of it:
Consumers referencing items by phandle and specifiers, specifiers
consisting of a variable number of cells including zero, the number of
cells being a property of the clock provider.


> Otherwise, this looks good to me!
> 
> Acked-by: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>

Thanks!


virtually yours
Gerhard Sittig
-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr. 5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office-ynQEQJNshbs@public.gmane.org
--
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

* [PATCH v2 1/1] dts: bindings: doc fix, zero cell clock specifiers are valid
       [not found] ` <1385999579-3184-1-git-send-email-gsi-ynQEQJNshbs@public.gmane.org>
  2013-12-02 16:18   ` Mark Rutland
@ 2013-12-07 13:22   ` Gerhard Sittig
  1 sibling, 0 replies; 4+ messages in thread
From: Gerhard Sittig @ 2013-12-07 13:22 UTC (permalink / raw)
  To: devicetree-u79uwXL29TY76Z2rM5mHXA
  Cc: Gerhard Sittig, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell

fix a typo in the common clock binding's "clock specifiers" discussion,
and clarify the fact that the sequence of integer cells that go with the
clock provider's phandle and form "the clock specifier" may be empty

Cc: Rob Herring <rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org>
Cc: Pawel Moll <pawel.moll-5wv7dgnIgG8@public.gmane.org>
Cc: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>
Cc: Ian Campbell <ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org>
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Signed-off-by: Gerhard Sittig <gsi-ynQEQJNshbs@public.gmane.org>

---

changes in v2:
- patch: "zero or more cells" form a clock specifier
- commit msg: more specific title and description

---
 Documentation/devicetree/bindings/clock/clock-bindings.txt |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/clock/clock-bindings.txt b/Documentation/devicetree/bindings/clock/clock-bindings.txt
index eb65d417f8c4..01b6a0caaa81 100644
--- a/Documentation/devicetree/bindings/clock/clock-bindings.txt
+++ b/Documentation/devicetree/bindings/clock/clock-bindings.txt
@@ -5,7 +5,7 @@ Sources of clock signal can be represented by any node in the device
 tree.  Those nodes are designated as clock providers.  Clock consumer
 nodes use a phandle and clock specifier pair to connect clock provider
 outputs to clock inputs.  Similar to the gpio specifiers, a clock
-specifier is an array of one more more cells identifying the clock
+specifier is an array of zero or more cells identifying the clock
 output on a device.  The length of a clock specifier is defined by the
 value of a #clock-cells property in the clock provider node.
 
-- 
1.7.10.4

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

end of thread, other threads:[~2013-12-07 13:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-02 15:52 [PATCH v1 1/1] dts: bindings: trivial clock bindings doc fixes Gerhard Sittig
     [not found] ` <1385999579-3184-1-git-send-email-gsi-ynQEQJNshbs@public.gmane.org>
2013-12-02 16:18   ` Mark Rutland
     [not found]     ` <20131202161843.GM12952-NuALmloUBlrZROr8t4l/smS4ubULX0JqMm0uRHvK7Nw@public.gmane.org>
2013-12-02 20:13       ` Gerhard Sittig
2013-12-07 13:22   ` [PATCH v2 1/1] dts: bindings: doc fix, zero cell clock specifiers are valid Gerhard Sittig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.