* [PATCH v2] scsi: ufs: qcom: dt-bindings: Add MCQ properties
@ 2023-09-14 7:05 Ziqi Chen
2023-09-14 7:16 ` Krzysztof Kozlowski
0 siblings, 1 reply; 3+ messages in thread
From: Ziqi Chen @ 2023-09-14 7:05 UTC (permalink / raw)
To: quic_asutoshd, quic_cang, bvanassche, mani, adrian.hunter,
beanhuo, avri.altman, martin.petersen, quic_ziqichen,
quic_nguyenb, quic_nitirawa
Cc: linux-scsi, Andy Gross, Bjorn Andersson, Konrad Dybcio,
Alim Akhtar, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
open list:ARM/QUALCOMM SUPPORT,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
open list
Remove the maxItem limitation to property 'reg',
and add description for the property 'msi-parent'.
Signed-off-by: Ziqi Chen <quic_ziqichen@quicinc.com>
---
Documentation/devicetree/bindings/ufs/qcom,ufs.yaml | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml
index bdfa86a..5ec2717 100644
--- a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml
+++ b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml
@@ -77,7 +77,13 @@ properties:
reg:
minItems: 1
- maxItems: 2
+ description:
+ Register base addresses and lengths of the UFS areas.
+
+ reg-names:
+ minItems: 1
+ description:
+ Names of the reg areas to use during resource lookup.
required-opps:
maxItems: 1
@@ -97,6 +103,10 @@ properties:
description:
GPIO connected to the RESET pin of the UFS memory device.
+ msi-parent:
+ description:
+ Pointer to the hardware entity that serves as the MSI controller for thi UFS controller.
+
required:
- compatible
- reg
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] scsi: ufs: qcom: dt-bindings: Add MCQ properties
2023-09-14 7:05 [PATCH v2] scsi: ufs: qcom: dt-bindings: Add MCQ properties Ziqi Chen
@ 2023-09-14 7:16 ` Krzysztof Kozlowski
2023-09-14 7:17 ` Krzysztof Kozlowski
0 siblings, 1 reply; 3+ messages in thread
From: Krzysztof Kozlowski @ 2023-09-14 7:16 UTC (permalink / raw)
To: Ziqi Chen, quic_asutoshd, quic_cang, bvanassche, mani,
adrian.hunter, beanhuo, avri.altman, martin.petersen,
quic_nguyenb, quic_nitirawa
Cc: linux-scsi, Andy Gross, Bjorn Andersson, Konrad Dybcio,
Alim Akhtar, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
open list:ARM/QUALCOMM SUPPORT,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
open list
On 14/09/2023 09:05, Ziqi Chen wrote:
> Remove the maxItem limitation to property 'reg',
> and add description for the property 'msi-parent'.
>
> Signed-off-by: Ziqi Chen <quic_ziqichen@quicinc.com>
> ---
> Documentation/devicetree/bindings/ufs/qcom,ufs.yaml | 12 +++++++++++-
> 1 file changed, 11 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml
> index bdfa86a..5ec2717 100644
> --- a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml
> +++ b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml
> @@ -77,7 +77,13 @@ properties:
>
> reg:
> minItems: 1
> - maxItems: 2
So 20 items are allowed? No, that's not correct.
> + description:
> + Register base addresses and lengths of the UFS areas.
Drop description - it's useless and redundant.
> +
> + reg-names:
> + minItems: 1
> + description:
> + Names of the reg areas to use during resource lookup.
Drop such description it's useless, instead list and describe items.
Also, why all devices now have two regs? No, this is just wrong. And
haven't we been here with two items?
>
> required-opps:
> maxItems: 1
> @@ -97,6 +103,10 @@ properties:
> description:
> GPIO connected to the RESET pin of the UFS memory device.
>
> + msi-parent:
> + description:
> + Pointer to the hardware entity that serves as the MSI controller for thi UFS controller.
typo in "thi". Not wrapped according to Linux coding style (as written
in coding style document). BTW, this is usually just "true" and without
need for description.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] scsi: ufs: qcom: dt-bindings: Add MCQ properties
2023-09-14 7:16 ` Krzysztof Kozlowski
@ 2023-09-14 7:17 ` Krzysztof Kozlowski
0 siblings, 0 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2023-09-14 7:17 UTC (permalink / raw)
To: Ziqi Chen, quic_asutoshd, quic_cang, bvanassche, mani,
adrian.hunter, beanhuo, avri.altman, martin.petersen,
quic_nguyenb, quic_nitirawa
Cc: linux-scsi, Andy Gross, Bjorn Andersson, Konrad Dybcio,
Alim Akhtar, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
open list:ARM/QUALCOMM SUPPORT,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
open list
On 14/09/2023 09:16, Krzysztof Kozlowski wrote:
> On 14/09/2023 09:05, Ziqi Chen wrote:
>> Remove the maxItem limitation to property 'reg',
Your commit should answer to "why". Not "what".
>> and add description for the property 'msi-parent'.
>>
>> Signed-off-by: Ziqi Chen <quic_ziqichen@quicinc.com>
>> ---
>> Documentation/devicetree/bindings/ufs/qcom,ufs.yaml | 12 +++++++++++-
>> 1 file changed, 11 insertions(+), 1 deletion(-)
>>
>> diff --git a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml
>> index bdfa86a..5ec2717 100644
>> --- a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml
>> +++ b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml
>> @@ -77,7 +77,13 @@ properties:
>>
>> reg:
>> minItems: 1
>> - maxItems: 2
>
> So 20 items are allowed? No, that's not correct.
>
>
>> + description:
>> + Register base addresses and lengths of the UFS areas.
>
> Drop description - it's useless and redundant.
>
>> +
>> + reg-names:
>> + minItems: 1
>> + description:
>> + Names of the reg areas to use during resource lookup.
>
> Drop such description it's useless, instead list and describe items.
>
> Also, why all devices now have two regs? No, this is just wrong. And
> haven't we been here with two items?
>
>
>>
>> required-opps:
>> maxItems: 1
>> @@ -97,6 +103,10 @@ properties:
>> description:
>> GPIO connected to the RESET pin of the UFS memory device.
>>
>> + msi-parent:
>> + description:
>> + Pointer to the hardware entity that serves as the MSI controller for thi UFS controller.
>
> typo in "thi". Not wrapped according to Linux coding style (as written
> in coding style document). BTW, this is usually just "true" and without
> need for description.
>
BTW, for both my comments - for reg/reg-names and this property - where
is the user? Except adding this to example, I expect to see users somewhere.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-09-14 7:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-14 7:05 [PATCH v2] scsi: ufs: qcom: dt-bindings: Add MCQ properties Ziqi Chen
2023-09-14 7:16 ` Krzysztof Kozlowski
2023-09-14 7:17 ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).