All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: reset: intel,rcu-gw: Fix intel,global-reset schema
@ 2020-01-13 21:45 Rob Herring
  2020-01-14  9:54 ` Dilip Kota
  2020-01-14 10:08 ` Philipp Zabel
  0 siblings, 2 replies; 4+ messages in thread
From: Rob Herring @ 2020-01-13 21:45 UTC (permalink / raw)
  To: devicetree; +Cc: linux-kernel, Philipp Zabel, Dilip Kota

The intel,rcu-gw binding example has an error:

Documentation/devicetree/bindings/reset/intel,rcu-gw.example.dt.yaml:
  reset-controller@e0000000: intel,global-reset: [[16, 30]] is too short

The error isn't really correct as the problem is in how the data is
encoded and the schema is not fixed up by the tooling correctly.
However, array properties should describe the elements in the array, so
lets do that which fixes the error in the process.

Fixes: b7ab0cb00d08 ("dt-bindings: reset: Add YAML schemas for the Intel Reset controller")
Cc: Philipp Zabel <p.zabel@pengutronix.de>
Cc: Dilip Kota <eswara.kota@linux.intel.com>
Signed-off-by: Rob Herring <robh@kernel.org>
---
 Documentation/devicetree/bindings/reset/intel,rcu-gw.yaml | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/reset/intel,rcu-gw.yaml b/Documentation/devicetree/bindings/reset/intel,rcu-gw.yaml
index 246dea8a2ec9..8ac437282659 100644
--- a/Documentation/devicetree/bindings/reset/intel,rcu-gw.yaml
+++ b/Documentation/devicetree/bindings/reset/intel,rcu-gw.yaml
@@ -23,7 +23,11 @@ properties:
     description: Global reset register offset and bit offset.
     allOf:
       - $ref: /schemas/types.yaml#/definitions/uint32-array
-      - maxItems: 2
+    items:
+      - description: Register offset
+      - description: Register bit offset
+        minimum: 0
+        maximum: 31
 
   "#reset-cells":
     minimum: 2
-- 
2.20.1


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

* Re: [PATCH] dt-bindings: reset: intel,rcu-gw: Fix intel,global-reset schema
  2020-01-13 21:45 [PATCH] dt-bindings: reset: intel,rcu-gw: Fix intel,global-reset schema Rob Herring
@ 2020-01-14  9:54 ` Dilip Kota
  2020-01-14 10:03   ` Dilip Kota
  2020-01-14 10:08 ` Philipp Zabel
  1 sibling, 1 reply; 4+ messages in thread
From: Dilip Kota @ 2020-01-14  9:54 UTC (permalink / raw)
  To: Rob Herring, devicetree; +Cc: linux-kernel, Philipp Zabel


On 1/14/2020 5:45 AM, Rob Herring wrote:
> The intel,rcu-gw binding example has an error:
>
> Documentation/devicetree/bindings/reset/intel,rcu-gw.example.dt.yaml:
>    reset-controller@e0000000: intel,global-reset: [[16, 30]] is too short
>
> The error isn't really correct as the problem is in how the data is
> encoded and the schema is not fixed up by the tooling correctly.
> However, array properties should describe the elements in the array, so
> lets do that which fixes the error in the process.

Sure, i will add the change describing the array properties and push as 
a fix patch.


Regards,

Dilip

>
> Fixes: b7ab0cb00d08 ("dt-bindings: reset: Add YAML schemas for the Intel Reset controller")
> Cc: Philipp Zabel <p.zabel@pengutronix.de>
> Cc: Dilip Kota <eswara.kota@linux.intel.com>
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
>   Documentation/devicetree/bindings/reset/intel,rcu-gw.yaml | 6 +++++-
>   1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/reset/intel,rcu-gw.yaml b/Documentation/devicetree/bindings/reset/intel,rcu-gw.yaml
> index 246dea8a2ec9..8ac437282659 100644
> --- a/Documentation/devicetree/bindings/reset/intel,rcu-gw.yaml
> +++ b/Documentation/devicetree/bindings/reset/intel,rcu-gw.yaml
> @@ -23,7 +23,11 @@ properties:
>       description: Global reset register offset and bit offset.
>       allOf:
>         - $ref: /schemas/types.yaml#/definitions/uint32-array
> -      - maxItems: 2
> +    items:
> +      - description: Register offset
> +      - description: Register bit offset
> +        minimum: 0
> +        maximum: 31
>   
>     "#reset-cells":
>       minimum: 2

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

* Re: [PATCH] dt-bindings: reset: intel,rcu-gw: Fix intel,global-reset schema
  2020-01-14  9:54 ` Dilip Kota
@ 2020-01-14 10:03   ` Dilip Kota
  0 siblings, 0 replies; 4+ messages in thread
From: Dilip Kota @ 2020-01-14 10:03 UTC (permalink / raw)
  To: Rob Herring, devicetree; +Cc: linux-kernel, Philipp Zabel

Hi Rob,

My bad, please ignore my response.
I just directly jumped into the error and felt you are suggesting me to 
send a separate patch to fix the error.
After sending the mail i realized by reading the subject that you 
already submitted the fix patch.
Please ignore it,

Thanks for doing it.
Regards,
Dilip

On 1/14/2020 5:54 PM, Dilip Kota wrote:
>
> On 1/14/2020 5:45 AM, Rob Herring wrote:
>> The intel,rcu-gw binding example has an error:
>>
>> Documentation/devicetree/bindings/reset/intel,rcu-gw.example.dt.yaml:
>>    reset-controller@e0000000: intel,global-reset: [[16, 30]] is too 
>> short
>>
>> The error isn't really correct as the problem is in how the data is
>> encoded and the schema is not fixed up by the tooling correctly.
>> However, array properties should describe the elements in the array, so
>> lets do that which fixes the error in the process.
>
> Sure, i will add the change describing the array properties and push 
> as a fix patch.
>
>
> Regards,
>
> Dilip
>
>>
>> Fixes: b7ab0cb00d08 ("dt-bindings: reset: Add YAML schemas for the 
>> Intel Reset controller")
>> Cc: Philipp Zabel <p.zabel@pengutronix.de>
>> Cc: Dilip Kota <eswara.kota@linux.intel.com>
>> Signed-off-by: Rob Herring <robh@kernel.org>
>> ---
>>   Documentation/devicetree/bindings/reset/intel,rcu-gw.yaml | 6 +++++-
>>   1 file changed, 5 insertions(+), 1 deletion(-)
>>
>> diff --git 
>> a/Documentation/devicetree/bindings/reset/intel,rcu-gw.yaml 
>> b/Documentation/devicetree/bindings/reset/intel,rcu-gw.yaml
>> index 246dea8a2ec9..8ac437282659 100644
>> --- a/Documentation/devicetree/bindings/reset/intel,rcu-gw.yaml
>> +++ b/Documentation/devicetree/bindings/reset/intel,rcu-gw.yaml
>> @@ -23,7 +23,11 @@ properties:
>>       description: Global reset register offset and bit offset.
>>       allOf:
>>         - $ref: /schemas/types.yaml#/definitions/uint32-array
>> -      - maxItems: 2
>> +    items:
>> +      - description: Register offset
>> +      - description: Register bit offset
>> +        minimum: 0
>> +        maximum: 31
>>       "#reset-cells":
>>       minimum: 2

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

* Re: [PATCH] dt-bindings: reset: intel,rcu-gw: Fix intel,global-reset schema
  2020-01-13 21:45 [PATCH] dt-bindings: reset: intel,rcu-gw: Fix intel,global-reset schema Rob Herring
  2020-01-14  9:54 ` Dilip Kota
@ 2020-01-14 10:08 ` Philipp Zabel
  1 sibling, 0 replies; 4+ messages in thread
From: Philipp Zabel @ 2020-01-14 10:08 UTC (permalink / raw)
  To: Rob Herring, devicetree; +Cc: linux-kernel, Dilip Kota

Hi Rob,

On Mon, 2020-01-13 at 15:45 -0600, Rob Herring wrote:
> The intel,rcu-gw binding example has an error:
> 
> Documentation/devicetree/bindings/reset/intel,rcu-gw.example.dt.yaml:
>   reset-controller@e0000000: intel,global-reset: [[16, 30]] is too short
> 
> The error isn't really correct as the problem is in how the data is
> encoded and the schema is not fixed up by the tooling correctly.
> However, array properties should describe the elements in the array, so
> lets do that which fixes the error in the process.
> 
> Fixes: b7ab0cb00d08 ("dt-bindings: reset: Add YAML schemas for the Intel Reset controller")
> Cc: Philipp Zabel <p.zabel@pengutronix.de>
> Cc: Dilip Kota <eswara.kota@linux.intel.com>
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
>  Documentation/devicetree/bindings/reset/intel,rcu-gw.yaml | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/Documentation/devicetree/bindings/reset/intel,rcu-gw.yaml b/Documentation/devicetree/bindings/reset/intel,rcu-gw.yaml
> index 246dea8a2ec9..8ac437282659 100644
> --- a/Documentation/devicetree/bindings/reset/intel,rcu-gw.yaml
> +++ b/Documentation/devicetree/bindings/reset/intel,rcu-gw.yaml
> @@ -23,7 +23,11 @@ properties:
>      description: Global reset register offset and bit offset.
>      allOf:
>        - $ref: /schemas/types.yaml#/definitions/uint32-array
> -      - maxItems: 2
> +    items:
> +      - description: Register offset
> +      - description: Register bit offset
> +        minimum: 0
> +        maximum: 31
>  
>    "#reset-cells":
>      minimum: 2

Thank you, applied to reset/next.

regards
Philipp


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

end of thread, other threads:[~2020-01-14 10:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-13 21:45 [PATCH] dt-bindings: reset: intel,rcu-gw: Fix intel,global-reset schema Rob Herring
2020-01-14  9:54 ` Dilip Kota
2020-01-14 10:03   ` Dilip Kota
2020-01-14 10:08 ` Philipp Zabel

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.