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

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: mmc: dwcmshc-sdhci: Fix resets array validation

The binding defines tuple-style reset-names items for some
compatibles, which implicitly enforces a fixed array length
via JSON Schema.

Defining global maxItems for resets and reset-names causes these
constraints to be intersected via allOf, resulting in an effective
minItems equal to the global maxItems. This leads to dtbs_check
failures reporting reset arrays as too short, even when the DTS
provides the correct number of entries.

Fixes: 30009a21f257 ("dt-bindings: mmc: sdhci-of-dwcmshc: Add Eswin EIC7700")
Co-developed-by: Pritesh Patel <pritesh.patel@einfochips.com>
Signed-off-by: Pritesh Patel <pritesh.patel@einfochips.com>
Signed-off-by: Huan He <hehuan1@eswincomputing.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Huan He and committed by
Ulf Hansson
5f7ac24b 1e31a3e8

+3
+3
Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml
··· 50 50 maxItems: 1 51 51 52 52 resets: 53 + minItems: 4 53 54 maxItems: 5 54 55 55 56 reset-names: 57 + minItems: 4 56 58 maxItems: 5 57 59 58 60 rockchip,txclk-tapnum: ··· 148 146 else: 149 147 properties: 150 148 resets: 149 + minItems: 5 151 150 maxItems: 5 152 151 reset-names: 153 152 items: