Unverified Commit 1c8094e3 authored by Rob Herring's avatar Rob Herring Committed by Palmer Dabbelt
Browse files

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



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>
parent fdf3a7a1
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -24,8 +24,8 @@ allOf:
select:
  properties:
    compatible:
      items:
        - enum:
      contains:
        enum:
          - sifive,fu540-c000-ccache
          - sifive,fu740-c000-ccache