2023-10-16 15:26:05

by Frank Li

[permalink] [raw]
Subject: [PATCH 1/2] dt-bindings: i3c: Fix silvaco,i3c-master compatible string

In driver, compatible string is silvaco,i3c-master instead of
silvaco,i3c-master-v1.

Signed-off-by: Frank Li <[email protected]>
---
Documentation/devicetree/bindings/i3c/silvaco,i3c-master.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/i3c/silvaco,i3c-master.yaml b/Documentation/devicetree/bindings/i3c/silvaco,i3c-master.yaml
index 133855f11b4f..19e3f75eb45c 100644
--- a/Documentation/devicetree/bindings/i3c/silvaco,i3c-master.yaml
+++ b/Documentation/devicetree/bindings/i3c/silvaco,i3c-master.yaml
@@ -14,7 +14,7 @@ allOf:

properties:
compatible:
- const: silvaco,i3c-master-v1
+ const: silvaco,i3c-master

reg:
maxItems: 1
@@ -49,7 +49,7 @@ unevaluatedProperties: false
examples:
- |
i3c-master@a0000000 {
- compatible = "silvaco,i3c-master-v1";
+ compatible = "silvaco,i3c-master";
clocks = <&zynqmp_clk 71>, <&fclk>, <&sclk>;
clock-names = "pclk", "fast_clk", "slow_clk";
interrupt-parent = <&gic>;
--
2.34.1


2023-10-16 17:31:08

by Conor Dooley

[permalink] [raw]
Subject: Re: [PATCH 1/2] dt-bindings: i3c: Fix silvaco,i3c-master compatible string

On Mon, Oct 16, 2023 at 11:24:49AM -0400, Frank Li wrote:
> In driver, compatible string is silvaco,i3c-master instead of
> silvaco,i3c-master-v1.

And what makes the driver right & the binding wrong? AFAICT, this is an
IP sold by silvaco & the -v1 suffix was explicitly requested during
review of the binding.

Thanks,
Conor.

>
> Signed-off-by: Frank Li <[email protected]>
> ---
> Documentation/devicetree/bindings/i3c/silvaco,i3c-master.yaml | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/i3c/silvaco,i3c-master.yaml b/Documentation/devicetree/bindings/i3c/silvaco,i3c-master.yaml
> index 133855f11b4f..19e3f75eb45c 100644
> --- a/Documentation/devicetree/bindings/i3c/silvaco,i3c-master.yaml
> +++ b/Documentation/devicetree/bindings/i3c/silvaco,i3c-master.yaml
> @@ -14,7 +14,7 @@ allOf:
>
> properties:
> compatible:
> - const: silvaco,i3c-master-v1
> + const: silvaco,i3c-master
>
> reg:
> maxItems: 1
> @@ -49,7 +49,7 @@ unevaluatedProperties: false
> examples:
> - |
> i3c-master@a0000000 {
> - compatible = "silvaco,i3c-master-v1";
> + compatible = "silvaco,i3c-master";
> clocks = <&zynqmp_clk 71>, <&fclk>, <&sclk>;
> clock-names = "pclk", "fast_clk", "slow_clk";
> interrupt-parent = <&gic>;
> --
> 2.34.1
>


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

2023-10-16 19:32:57

by Frank Li

[permalink] [raw]
Subject: Re: [PATCH 1/2] dt-bindings: i3c: Fix silvaco,i3c-master compatible string

On Mon, Oct 16, 2023 at 06:30:11PM +0100, Conor Dooley wrote:
> On Mon, Oct 16, 2023 at 11:24:49AM -0400, Frank Li wrote:
> > In driver, compatible string is silvaco,i3c-master instead of
> > silvaco,i3c-master-v1.
>
> And what makes the driver right & the binding wrong? AFAICT, this is an
> IP sold by silvaco & the -v1 suffix was explicitly requested during
> review of the binding.

The driver existed for the long time. DTS files already use
silvaco,i3c-master.

There are two options, one change doc, the other change dts and drivers.
I think change doc is easiest ways.

If there are v2 in future, we can added silvaco,i3c-master-v2 in future.

If everyone prefer change drivers and dts, I can work on new patch. Just
break back compatiblity.

Frank

>
> Thanks,
> Conor.
>
> >
> > Signed-off-by: Frank Li <[email protected]>
> > ---
> > Documentation/devicetree/bindings/i3c/silvaco,i3c-master.yaml | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/Documentation/devicetree/bindings/i3c/silvaco,i3c-master.yaml b/Documentation/devicetree/bindings/i3c/silvaco,i3c-master.yaml
> > index 133855f11b4f..19e3f75eb45c 100644
> > --- a/Documentation/devicetree/bindings/i3c/silvaco,i3c-master.yaml
> > +++ b/Documentation/devicetree/bindings/i3c/silvaco,i3c-master.yaml
> > @@ -14,7 +14,7 @@ allOf:
> >
> > properties:
> > compatible:
> > - const: silvaco,i3c-master-v1
> > + const: silvaco,i3c-master
> >
> > reg:
> > maxItems: 1
> > @@ -49,7 +49,7 @@ unevaluatedProperties: false
> > examples:
> > - |
> > i3c-master@a0000000 {
> > - compatible = "silvaco,i3c-master-v1";
> > + compatible = "silvaco,i3c-master";
> > clocks = <&zynqmp_clk 71>, <&fclk>, <&sclk>;
> > clock-names = "pclk", "fast_clk", "slow_clk";
> > interrupt-parent = <&gic>;
> > --
> > 2.34.1
> >


2023-10-16 19:57:39

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH 1/2] dt-bindings: i3c: Fix silvaco,i3c-master compatible string

On 16/10/2023 21:32, Frank Li wrote:
> On Mon, Oct 16, 2023 at 06:30:11PM +0100, Conor Dooley wrote:
>> On Mon, Oct 16, 2023 at 11:24:49AM -0400, Frank Li wrote:
>>> In driver, compatible string is silvaco,i3c-master instead of
>>> silvaco,i3c-master-v1.
>>
>> And what makes the driver right & the binding wrong? AFAICT, this is an
>> IP sold by silvaco & the -v1 suffix was explicitly requested during
>> review of the binding.
>
> The driver existed for the long time. DTS files already use
> silvaco,i3c-master.
>
> There are two options, one change doc, the other change dts and drivers.
> I think change doc is easiest ways.
>
> If there are v2 in future, we can added silvaco,i3c-master-v2 in future.
>
> If everyone prefer change drivers and dts, I can work on new patch. Just
> break back compatiblity.

No, because Rob explicitly pointed out too generic name.
https://lore.kernel.org/all/[email protected]/

Is it some way to avoid implementing feedback or how does it work?

Best regards,
Krzysztof

2023-10-16 20:11:44

by Frank Li

[permalink] [raw]
Subject: Re: [PATCH 1/2] dt-bindings: i3c: Fix silvaco,i3c-master compatible string

On Mon, Oct 16, 2023 at 09:57:18PM +0200, Krzysztof Kozlowski wrote:
> On 16/10/2023 21:32, Frank Li wrote:
> > On Mon, Oct 16, 2023 at 06:30:11PM +0100, Conor Dooley wrote:
> >> On Mon, Oct 16, 2023 at 11:24:49AM -0400, Frank Li wrote:
> >>> In driver, compatible string is silvaco,i3c-master instead of
> >>> silvaco,i3c-master-v1.
> >>
> >> And what makes the driver right & the binding wrong? AFAICT, this is an
> >> IP sold by silvaco & the -v1 suffix was explicitly requested during
> >> review of the binding.
> >
> > The driver existed for the long time. DTS files already use
> > silvaco,i3c-master.
> >
> > There are two options, one change doc, the other change dts and drivers.
> > I think change doc is easiest ways.
> >
> > If there are v2 in future, we can added silvaco,i3c-master-v2 in future.
> >
> > If everyone prefer change drivers and dts, I can work on new patch. Just
> > break back compatiblity.
>
> No, because Rob explicitly pointed out too generic name.
> https://lore.kernel.org/all/[email protected]/
>
> Is it some way to avoid implementing feedback or how does it work?

Downstream use silvaco,i3c-master to match driver. Anyways, miss match
happened.

option 1: fix doc
option 2: fix driver and dts

what do you perfer?

>
> Best regards,
> Krzysztof
>

2023-10-16 20:43:41

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH 1/2] dt-bindings: i3c: Fix silvaco,i3c-master compatible string

On 16/10/2023 22:10, Frank Li wrote:
> On Mon, Oct 16, 2023 at 09:57:18PM +0200, Krzysztof Kozlowski wrote:
>> On 16/10/2023 21:32, Frank Li wrote:
>>> On Mon, Oct 16, 2023 at 06:30:11PM +0100, Conor Dooley wrote:
>>>> On Mon, Oct 16, 2023 at 11:24:49AM -0400, Frank Li wrote:
>>>>> In driver, compatible string is silvaco,i3c-master instead of
>>>>> silvaco,i3c-master-v1.
>>>>
>>>> And what makes the driver right & the binding wrong? AFAICT, this is an
>>>> IP sold by silvaco & the -v1 suffix was explicitly requested during
>>>> review of the binding.
>>>
>>> The driver existed for the long time. DTS files already use
>>> silvaco,i3c-master.
>>>
>>> There are two options, one change doc, the other change dts and drivers.
>>> I think change doc is easiest ways.
>>>
>>> If there are v2 in future, we can added silvaco,i3c-master-v2 in future.
>>>
>>> If everyone prefer change drivers and dts, I can work on new patch. Just
>>> break back compatiblity.
>>
>> No, because Rob explicitly pointed out too generic name.
>> https://lore.kernel.org/all/[email protected]/
>>
>> Is it some way to avoid implementing feedback or how does it work?
>
> Downstream use silvaco,i3c-master to match driver. Anyways, miss match

Too bad for downstream.

> happened.
>
> option 1: fix doc
> option 2: fix driver and dts
>
> what do you perfer?

Fix driver and dts, keep existing compatible as deprecated.

Best regards,
Krzysztof

2023-10-17 14:15:49

by Miquel Raynal

[permalink] [raw]
Subject: Re: [PATCH 1/2] dt-bindings: i3c: Fix silvaco,i3c-master compatible string

Hi Krzysztof,

[email protected] wrote on Mon, 16 Oct 2023 22:43:28 +0200:

> On 16/10/2023 22:10, Frank Li wrote:
> > On Mon, Oct 16, 2023 at 09:57:18PM +0200, Krzysztof Kozlowski wrote:
> >> On 16/10/2023 21:32, Frank Li wrote:
> >>> On Mon, Oct 16, 2023 at 06:30:11PM +0100, Conor Dooley wrote:
> >>>> On Mon, Oct 16, 2023 at 11:24:49AM -0400, Frank Li wrote:
> >>>>> In driver, compatible string is silvaco,i3c-master instead of
> >>>>> silvaco,i3c-master-v1.
> >>>>
> >>>> And what makes the driver right & the binding wrong? AFAICT, this is an
> >>>> IP sold by silvaco & the -v1 suffix was explicitly requested during
> >>>> review of the binding.
> >>>
> >>> The driver existed for the long time. DTS files already use
> >>> silvaco,i3c-master.
> >>>
> >>> There are two options, one change doc, the other change dts and drivers.
> >>> I think change doc is easiest ways.
> >>>
> >>> If there are v2 in future, we can added silvaco,i3c-master-v2 in future.
> >>>
> >>> If everyone prefer change drivers and dts, I can work on new patch. Just
> >>> break back compatiblity.
> >>
> >> No, because Rob explicitly pointed out too generic name.
> >> https://lore.kernel.org/all/[email protected]/
> >>
> >> Is it some way to avoid implementing feedback or how does it work?

Not at all, it's my (faithful) fault, I did update the bindings upon
Rob request and apparently kept the previous string in the driver.

After thinking again I would drop silvaco,i3c-master entirely from the
driver, it was never intended to keep it.

Thanks,
Miquèl