Skip to content
Snippets Groups Projects
Commit c5600b91 authored by Rob Herring's avatar Rob Herring Committed by Greg Kroah-Hartman
Browse files

dt-bindings: sifive-l2-cache: Fix 'select' matching


[ Upstream commit 1c8094e3 ]

When the schema fixups are applied to 'select' the result is a single
entry is required for a match, but that will never match as there should
be 2 entries. Also, a 'select' schema should have the widest possible
match, so use 'contains' which matches the compatible string(s) in any
position and not just the first position.

Fixes: 993dcfac ("dt-bindings: riscv: sifive-l2-cache: convert bindings to json-schema")
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarPalmer Dabbelt <palmerdabbelt@google.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent ad5329a5
No related branches found
No related tags found
1 merge request!15.10.61 -> 5.10.152 upgrade
......@@ -24,9 +24,9 @@ allOf:
select:
properties:
compatible:
items:
- enum:
- sifive,fu540-c000-ccache
contains:
enum:
- sifive,fu540-c000-ccache
required:
- compatible
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment