* [PATCH] dt-bindings: arm: keystone: ti,sci: Correct reg and mboxes constraints
@ 2026-10-02 6:30 Krzysztof Kozlowski
2026-10-02 9:14 ` sashiko-bot
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2026-10-02 6:30 UTC (permalink / raw)
To: Nishanth Menon, Tero Kristo, Santosh Shilimkar, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, linux-arm-kernel, devicetree,
linux-kernel
Cc: Krzysztof Kozlowski
minItems does not impose any limit on actual maximum number of items in
a list, thus it needs maxItems. maxItems on the other hand does imply
minItems. Add missing upper bound on 'reg' and 'mboxes'.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
---
Documentation/devicetree/bindings/arm/keystone/ti,sci.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/arm/keystone/ti,sci.yaml b/Documentation/devicetree/bindings/arm/keystone/ti,sci.yaml
index 25a2b42105e5..052e23966a8f 100644
--- a/Documentation/devicetree/bindings/arm/keystone/ti,sci.yaml
+++ b/Documentation/devicetree/bindings/arm/keystone/ti,sci.yaml
@@ -48,7 +48,7 @@ properties:
const: debug_messages
reg:
- minItems: 1
+ maxItems: 1
mbox-names:
description: |
@@ -59,7 +59,7 @@ properties:
- const: tx
mboxes:
- minItems: 2
+ maxItems: 2
ti,host-id:
$ref: /schemas/types.yaml#/definitions/uint32
--
2.53.0
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH] dt-bindings: arm: keystone: ti,sci: Correct reg and mboxes constraints
2026-10-02 6:30 [PATCH] dt-bindings: arm: keystone: ti,sci: Correct reg and mboxes constraints Krzysztof Kozlowski
@ 2026-10-02 9:14 ` sashiko-bot
2026-10-02 9:46 ` Krzysztof Kozlowski
2026-10-02 16:49 ` Conor Dooley
2026-10-08 20:11 ` Rob Herring (Arm)
2 siblings, 1 reply; 5+ messages in thread
From: sashiko-bot @ 2026-10-02 9:14 UTC (permalink / raw)
To: Krzysztof Kozlowski; +Cc: devicetree, robh, conor+dt
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] dt-bindings: missing minItems allows incomplete mboxes array
--
commit 344119f20b7b40eacf80223cff1d1579d7303039
Author: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
dt-bindings: arm: keystone: ti,sci: Correct reg and mboxes constraints
This commit replaces minItems constraints with maxItems constraints for the
reg and mboxes properties. It intends to enforce an upper bound on these
lists while assuming the lower bound remains intact.
> minItems does not impose any limit on actual maximum number of items in
> a list, thus it needs maxItems. maxItems on the other hand does imply
> minItems. Add missing upper bound on 'reg' and 'mboxes'.
[Severity: Medium]
Is the statement that maxItems implies minItems accurate for values greater
than 1?
In JSON Schema and dt-schema, omitting minItems on an array defaults to
minItems: 1, regardless of the maxItems value.
> diff --git a/Documentation/devicetree/bindings/arm/keystone/ti,sci.yaml b/Documentation/devicetree/bindings/arm/keystone/ti,sci.yaml
> index 25a2b42105e54..052e23966a8f1 100644
> --- a/Documentation/devicetree/bindings/arm/keystone/ti,sci.yaml
> +++ b/Documentation/devicetree/bindings/arm/keystone/ti,sci.yaml
[ ... ]
> @@ -59,7 +59,7 @@ properties:
> - const: tx
>
> mboxes:
> - minItems: 2
> + maxItems: 2
[Severity: Medium]
Does removing minItems: 2 here incorrectly allow partial configurations?
A device tree providing only a single mailbox will pass schema validation
since the default minItems is 1, even though exactly two mailboxes (rx and
tx) are required by the hardware and the mbox-names constraint.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261002063011.38972-2-krzysztof.kozlowski@oss.qualcomm.com?part=1
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] dt-bindings: arm: keystone: ti,sci: Correct reg and mboxes constraints
2026-10-02 9:14 ` sashiko-bot
@ 2026-10-02 9:46 ` Krzysztof Kozlowski
0 siblings, 0 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2026-10-02 9:46 UTC (permalink / raw)
To: sashiko-reviews; +Cc: devicetree, robh, conor+dt
On 02/10/2026 11:14, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
> - [Medium] dt-bindings: missing minItems allows incomplete mboxes array
Complete bollocks.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] dt-bindings: arm: keystone: ti,sci: Correct reg and mboxes constraints
2026-10-02 6:30 [PATCH] dt-bindings: arm: keystone: ti,sci: Correct reg and mboxes constraints Krzysztof Kozlowski
2026-10-02 9:14 ` sashiko-bot
@ 2026-10-02 16:49 ` Conor Dooley
2026-10-08 20:11 ` Rob Herring (Arm)
2 siblings, 0 replies; 5+ messages in thread
From: Conor Dooley @ 2026-10-02 16:49 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Nishanth Menon, Tero Kristo, Santosh Shilimkar, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, linux-arm-kernel, devicetree,
linux-kernel
[-- Attachment #1: Type: text/plain, Size: 52 bytes --]
Acked-by: Conor Dooley <conor.dooley@microchip.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] dt-bindings: arm: keystone: ti,sci: Correct reg and mboxes constraints
2026-10-02 6:30 [PATCH] dt-bindings: arm: keystone: ti,sci: Correct reg and mboxes constraints Krzysztof Kozlowski
2026-10-02 9:14 ` sashiko-bot
2026-10-02 16:49 ` Conor Dooley
@ 2026-10-08 20:11 ` Rob Herring (Arm)
2 siblings, 0 replies; 5+ messages in thread
From: Rob Herring (Arm) @ 2026-10-08 20:11 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Conor Dooley, Tero Kristo, linux-kernel, Krzysztof Kozlowski,
linux-arm-kernel, devicetree, Nishanth Menon, Santosh Shilimkar
On Fri, 02 Oct 2026 08:30:12 +0200, Krzysztof Kozlowski wrote:
> minItems does not impose any limit on actual maximum number of items in
> a list, thus it needs maxItems. maxItems on the other hand does imply
> minItems. Add missing upper bound on 'reg' and 'mboxes'.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
> ---
> Documentation/devicetree/bindings/arm/keystone/ti,sci.yaml | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
Applied, thanks!
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-10-08 20:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-02 6:30 [PATCH] dt-bindings: arm: keystone: ti,sci: Correct reg and mboxes constraints Krzysztof Kozlowski
2026-10-02 9:14 ` sashiko-bot
2026-10-02 9:46 ` Krzysztof Kozlowski
2026-10-02 16:49 ` Conor Dooley
2026-10-08 20:11 ` Rob Herring (Arm)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox