2022-03-06 11:37:53

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: Aw: Re: [PATCH v5 1/5] dt-bindings: ata: ahci-platform: Convert DT bindings to yaml

On 06/03/2022 10:47, Frank Wunderlich wrote:
> Hi Krzysztof,
>
> have seen some warnings in Robs bot for arm.
>
> imho have fixed them (and the indention you've mentioned already squashed) in my tree [1].
>
> add compatibles used together with generic-ahci
> - marvell,berlin2-ahci

This is fine, just mention it in commit msg.

> - qcom,apq8064-ahci
> - qcom,ipq806x-ahci

These you need to consult with qcom-sata.txt. This could be a following
commit which will integrate qcom-sata.txt and remove it. Either you have
binding document for all devices or you create a common part, like for UFS:
https://lore.kernel.org/linux-devicetree/[email protected]/
https://github.com/krzk/linux/commits/n/dt-bindings-ufs-v2

The choice depends more or less on complexity of bindings, IOW, how big
and complicated bindings would be if you combine everything to one YAML.

In the case of UFS, the devices differ - by clocks, resets, phys and
sometimes supplies. Therefore it easier to have one common shared part
and several device bindings.

AHCI looks more consistent - except that Qualcomm - so maybe better to
have one document.

> increase reg-count to 2 (used in omap5-l4.dtsi)
> increase clock-count to 5 (used in qcom-apq8064.dtsi)

This would need allOf+if.

>
> can i still add you reviewed-by to v6?

Keeping reviewed-by would be fine when adding compatibles and bumping
maxItems, but in your case you need to rework these bindings. Either by
growing document with several "if:" or by splitting them, so it will be
significant change. Skip my review then.

>
> [1] https://github.com/frank-w/BPI-R2-4.14/commits/5.17-next-20220225
>
> regards Frank
>
>
>> Gesendet: Samstag, 05. März 2022 um 18:43 Uhr
>> Von: "Krzysztof Kozlowski" <[email protected]>
>>
>> Thanks for the changes, all look good except now I noticed that
>> indentation of example is unusual. It's not consistent. Starts with four
>> space (correct) but then goes to 7 spaces. Please adjust entire example
>> to use 4 spaces indentation.
>>
>> With that:
>>
>> Reviewed-by: Krzysztof Kozlowski <[email protected]>
>
>


Best regards,
Krzysztof


2022-03-07 06:38:34

by Frank Wunderlich

[permalink] [raw]
Subject: Aw: Re: Re: [PATCH v5 1/5] dt-bindings: ata: ahci-platform: Convert DT bindings to yaml

> Gesendet: Sonntag, 06. März 2022 um 11:27 Uhr
> Von: "Krzysztof Kozlowski" <[email protected]>
> > add compatibles used together with generic-ahci
> > - marvell,berlin2-ahci
>
> This is fine, just mention it in commit msg.
>
> > - qcom,apq8064-ahci
> > - qcom,ipq806x-ahci
>
> These you need to consult with qcom-sata.txt. This could be a following
> commit which will integrate qcom-sata.txt and remove it.

this depends on Robs opinion

> Either you have
> binding document for all devices or you create a common part, like for UFS:
> https://lore.kernel.org/linux-devicetree/[email protected]/
> https://github.com/krzk/linux/commits/n/dt-bindings-ufs-v2
>
> The choice depends more or less on complexity of bindings, IOW, how big
> and complicated bindings would be if you combine everything to one YAML.
>
> In the case of UFS, the devices differ - by clocks, resets, phys and
> sometimes supplies. Therefore it easier to have one common shared part
> and several device bindings.
>
> AHCI looks more consistent - except that Qualcomm - so maybe better to
> have one document.
>
> > increase reg-count to 2 (used in omap5-l4.dtsi)
> > increase clock-count to 5 (used in qcom-apq8064.dtsi)
>
> This would need allOf+if.

if i get ok from rob i add only the berlin-compatible and skip the qcom+reg/clock-change in the first applied version. Adding the allOf/if (and making it right) will only delay the sata-binding/dts-change.

> >
> > can i still add you reviewed-by to v6?
>
> Keeping reviewed-by would be fine when adding compatibles and bumping
> maxItems, but in your case you need to rework these bindings. Either by
> growing document with several "if:" or by splitting them, so it will be
> significant change. Skip my review then.
>
> >
> > [1] https://github.com/frank-w/BPI-R2-4.14/commits/5.17-next-20220225

regards Frank