2023-09-29 11:09:53

by claudiu beznea

[permalink] [raw]
Subject: [PATCH v2 19/28] dt-bindings: pinctrl: renesas: set additionalProperties: false

From: Claudiu Beznea <[email protected]>

Set additionalProperties: false.

Suggested-by: Rob Herring <[email protected]>
Signed-off-by: Claudiu Beznea <[email protected]>
---

Changes in v2:
- this patch is new in v2 and added as suggested by Rob

.../devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml
index 4782f96feb7e..eb726770f571 100644
--- a/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml
@@ -106,8 +106,7 @@ additionalProperties:
line-name: true

- type: object
- additionalProperties:
- $ref: "#/additionalProperties/anyOf/0"
+ additionalProperties: false

allOf:
- $ref: pinctrl.yaml#
--
2.39.2


2023-09-29 14:25:41

by Conor Dooley

[permalink] [raw]
Subject: Re: [PATCH v2 19/28] dt-bindings: pinctrl: renesas: set additionalProperties: false

On Fri, Sep 29, 2023 at 08:39:06AM +0300, Claudiu wrote:
> From: Claudiu Beznea <[email protected]>
>
> Set additionalProperties: false.
>
> Suggested-by: Rob Herring <[email protected]>
> Signed-off-by: Claudiu Beznea <[email protected]>
> ---
>
> Changes in v2:
> - this patch is new in v2 and added as suggested by Rob
>
> .../devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml
> index 4782f96feb7e..eb726770f571 100644
> --- a/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml
> +++ b/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml
> @@ -106,8 +106,7 @@ additionalProperties:
> line-name: true
>
> - type: object
> - additionalProperties:
> - $ref: "#/additionalProperties/anyOf/0"

I have no clue what this original version was doing, I figure it
resolves to an empty list or something, and therefore acts just like
false?

New version looks a lot more normal..

Acked-by: Conor Dooley <[email protected]>

Thanks,
Conor.

> + additionalProperties: false
>
> allOf:
> - $ref: pinctrl.yaml#
> --
> 2.39.2
>


Attachments:
(No filename) (1.37 kB)
signature.asc (235.00 B)
Download all attachments

2023-10-02 15:13:27

by Rob Herring (Arm)

[permalink] [raw]
Subject: Re: [PATCH v2 19/28] dt-bindings: pinctrl: renesas: set additionalProperties: false

On Fri, Sep 29, 2023 at 08:39:06AM +0300, Claudiu wrote:
> From: Claudiu Beznea <[email protected]>
>
> Set additionalProperties: false.
>
> Suggested-by: Rob Herring <[email protected]>

I did?

> Signed-off-by: Claudiu Beznea <[email protected]>
> ---
>
> Changes in v2:
> - this patch is new in v2 and added as suggested by Rob
>
> .../devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml
> index 4782f96feb7e..eb726770f571 100644
> --- a/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml
> +++ b/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml
> @@ -106,8 +106,7 @@ additionalProperties:
> line-name: true
>
> - type: object
> - additionalProperties:
> - $ref: "#/additionalProperties/anyOf/0"
> + additionalProperties: false

With no properties defined, this only allows an empty node which is
probably not what you want. It's the other anyOf entry that needed it,
but I already sent a fix which Linus applied.

Rob

2023-10-03 03:57:55

by claudiu beznea

[permalink] [raw]
Subject: Re: [PATCH v2 19/28] dt-bindings: pinctrl: renesas: set additionalProperties: false



On 02.10.2023 17:50, Rob Herring wrote:
> On Fri, Sep 29, 2023 at 08:39:06AM +0300, Claudiu wrote:
>> From: Claudiu Beznea <[email protected]>
>>
>> Set additionalProperties: false.
>>
>> Suggested-by: Rob Herring <[email protected]>
>
> I did?

It is what I've understood from this:

https://patchwork.kernel.org/project/linux-renesas-soc/patch/[email protected]/

>
>> Signed-off-by: Claudiu Beznea <[email protected]>
>> ---
>>
>> Changes in v2:
>> - this patch is new in v2 and added as suggested by Rob
>>
>> .../devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml | 3 +--
>> 1 file changed, 1 insertion(+), 2 deletions(-)
>>
>> diff --git a/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml
>> index 4782f96feb7e..eb726770f571 100644
>> --- a/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml
>> +++ b/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml
>> @@ -106,8 +106,7 @@ additionalProperties:
>> line-name: true
>>
>> - type: object
>> - additionalProperties:
>> - $ref: "#/additionalProperties/anyOf/0"
>> + additionalProperties: false
>
> With no properties defined, this only allows an empty node which is
> probably not what you want. It's the other anyOf entry that needed it,
> but I already sent a fix which Linus applied.

Thanks!

>
> Rob