Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 29a6d1215b7c ("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>

authored by

Abel Vesa and committed by
Martin K. Petersen
9b7c13b8 71e3e85c

+4 -5
+4 -5
Documentation/devicetree/bindings/ufs/qcom,ufs.yaml
··· 194 194 # TODO: define clock bindings for qcom,msm8994-ufshc 195 195 196 196 - if: 197 - properties: 198 - qcom,ice: 199 - maxItems: 1 197 + required: 198 + - qcom,ice 200 199 then: 201 200 properties: 202 201 reg: ··· 206 207 else: 207 208 properties: 208 209 reg: 209 - minItems: 2 210 + minItems: 1 210 211 maxItems: 2 211 212 clocks: 212 - minItems: 9 213 + minItems: 8 213 214 maxItems: 11 214 215 215 216 unevaluatedProperties: false