Skip to content

Commit 9b7c13b

Browse files
abelvesamartinkpetersen
authored andcommitted
scsi: dt-bindings: ufs: qcom: Fix ICE phandle
The check for 'qcom,ice' property is wrong. Fix it by checking using if-required clause and expand the clocks minItems and maxItems for platforms where 'qcom,ice' is not required so that it includes platforms with single reg entry and clocks that do not provide an ICE one. Fixes: 29a6d12 ("scsi: ufs: dt-bindings: qcom: Add ICE phandle") Signed-off-by: Abel Vesa <abel.vesa@linaro.org> Link: https://lore.kernel.org/r/20230623113009.2512206-2-abel.vesa@linaro.org Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 71e3e85 commit 9b7c13b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Documentation/devicetree/bindings/ufs/qcom,ufs.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,8 @@ allOf:
194194
# TODO: define clock bindings for qcom,msm8994-ufshc
195195

196196
- if:
197-
properties:
198-
qcom,ice:
199-
maxItems: 1
197+
required:
198+
- qcom,ice
200199
then:
201200
properties:
202201
reg:
@@ -207,10 +206,10 @@ allOf:
207206
else:
208207
properties:
209208
reg:
210-
minItems: 2
209+
minItems: 1
211210
maxItems: 2
212211
clocks:
213-
minItems: 9
212+
minItems: 8
214213
maxItems: 11
215214

216215
unevaluatedProperties: false

0 commit comments

Comments
 (0)