]> git.baikalelectronics.ru Git - kernel.git/commitdiff
dt-bindings: interrupt-controller: sifive,plic: Fix number of interrupts
authorGeert Uytterhoeven <geert@linux-m68k.org>
Fri, 28 Jan 2022 09:03:57 +0000 (10:03 +0100)
committerMarc Zyngier <maz@kernel.org>
Fri, 28 Jan 2022 17:27:26 +0000 (17:27 +0000)
The number of interrupts lacks an upper bound, thus assuming one,
causing properly grouped "interrupts-extended" properties to be flagged
as an error by "make dtbs_check".

Fix this by adding the missing "maxItems", using the architectural
maximum of 15872 interrupts.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Rob Herring <robh@kernel.org>
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/f73a0aead89e1426b146c4c64f797aa035868bf0.1643360419.git.geert@linux-m68k.org
Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml

index 08d5a57ce00ff4465eaf11b6853d4b1b03324785..5edaa08f576e7e4533245026591d1e4bacaaa2e3 100644 (file)
@@ -61,6 +61,7 @@ properties:
 
   interrupts-extended:
     minItems: 1
+    maxItems: 15872
     description:
       Specifies which contexts are connected to the PLIC, with "-1" specifying
       that a context is not present. Each node pointed to should be a