From: sashiko-bot@kernel.org
To: "Krzysztof Kozlowski" <krzysztof.kozlowski@oss.qualcomm.com>
Cc: wsa+renesas@sang-engineering.com, devicetree@vger.kernel.org,
conor+dt@kernel.org, robh@kernel.org
Subject: Re: [PATCH v2 2/4] dt-bindings: mfd: syscon: Drop unneeded case for syscon + simple-mfd
Date: Mon, 08 Jun 2026 14:08:53 +0000 [thread overview]
Message-ID: <20260608140853.BD7BD1F00893@smtp.kernel.org> (raw)
In-Reply-To: <20260608-n-dt-bindings-simple-bus-syscon-v2-2-0203e6c249dc@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] Removing the `minItems: 3` constraint introduces a schema validation loophole, allowing device trees to use exactly `compatible = "syscon", "simple-mfd";` without a vendor-specific compatible string.
--
commit 882002de06044bfb3632f58a13384021911573e1
Author: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
dt-bindings: mfd: syscon: Drop unneeded case for syscon + simple-mfd
This commit removes the conditional block enforcing the number of compatible
items for devices combining "syscon" and "simple-mfd". The intention was to
remove a permissive list that the author believed was unused because
specific bindings handle their own schemas.
> diff --git a/Documentation/devicetree/bindings/mfd/syscon-common.yaml b/Documentation/devicetree/bindings/mfd/syscon-common.yaml
> index 315357da146ea..b3462e876622f 100644
> --- a/Documentation/devicetree/bindings/mfd/syscon-common.yaml
> +++ b/Documentation/devicetree/bindings/mfd/syscon-common.yaml
> @@ -46,17 +46,6 @@ required:
> - reg
>
> allOf:
> - - if:
> - properties:
> - compatible:
> - contains:
> - const: simple-mfd
> - then:
> - properties:
> - compatible:
> - minItems: 3
> - maxItems: 5
[Severity: Medium]
Does removing this conditional block reintroduce a schema validation loophole?
By removing the minItems requirement for simple-mfd, the compatible array
length constraint falls back to the base minimum of 2 defined earlier in the
file. Since syscon-common.yaml uses additionalProperties: true, device tree
nodes using exactly "syscon", "simple-mfd" without a vendor-specific
compatible string might now silently pass validation.
Are there still undocumented device tree nodes in the kernel
(such as arch/arm/boot/dts/nxp/imx/imx51-ts4800.dts) using exactly this
2-item compatible string that will now bypass validation instead of being
properly flagged as errors?
> -
> - if:
> properties:
> compatible:
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260608-n-dt-bindings-simple-bus-syscon-v2-0-0203e6c249dc@oss.qualcomm.com?part=2
next prev parent reply other threads:[~2026-06-08 14:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-08 13:54 [PATCH v2 0/4] dt-bindings: mfd: syscon: Tighten checks Krzysztof Kozlowski
2026-06-08 13:54 ` [PATCH v2 1/4] dt-bindings: mfd: syscon: Disallow simple-bus with syscon Krzysztof Kozlowski
2026-06-08 14:06 ` sashiko-bot
2026-06-08 13:54 ` [PATCH v2 2/4] dt-bindings: mfd: syscon: Drop unneeded case for syscon + simple-mfd Krzysztof Kozlowski
2026-06-08 14:08 ` sashiko-bot [this message]
2026-06-08 13:54 ` [PATCH v2 3/4] dt-bindings: mfd: syscon: Drop custom select for older dtschema Krzysztof Kozlowski
2026-06-08 14:01 ` sashiko-bot
2026-06-08 14:07 ` Krzysztof Kozlowski
2026-06-08 13:54 ` [PATCH v2 4/4] ARM: dts: ti: Add specific compatibles for SCM conf nodes Krzysztof Kozlowski
2026-06-08 14:11 ` sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260608140853.BD7BD1F00893@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski@oss.qualcomm.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=wsa+renesas@sang-engineering.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox