From: sashiko-bot@kernel.org
To: Quchaosheng <quchaosheng000406@163.com>
Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, robh@kernel.org,
mfd@lists.linux.dev, lee@kernel.org
Subject: Re: [PATCH v4] dt-bindings: mfd: rockchip,rk805: Convert pinctrl to DT schema
Date: Wed, 23 Sep 2026 07:54:50 +0000 [thread overview]
Message-ID: <20260923075450.B11531F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260923074503.575956-1-quchaosheng000406@163.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] dt-bindings: schema validation bypass in pinmux node
--
commit 23fc579859b9d9440daa6190b6669884929fe260
Author: Quchaosheng <quchaosheng000406@163.com>
dt-bindings: mfd: rockchip,rk805: Convert pinctrl to DT schema
This commit folds the pinmux description from a text binding into the
rockchip,rk805.yaml schema. It adds child node schema definitions to describe
pin configuration nodes, supporting both flat and grouped layouts.
Link: https://sashiko.dev/#/patchset/20260923034245.396417-1-quchaosheng000406@163.com?part=1
Link: https://sashiko.dev/#/patchset/20260923062746.516666-1-quchaosheng000406@163.com?part=1
> diff --git a/Documentation/devicetree/bindings/mfd/rockchip,rk805.yaml b/Documentation/devicetree/bindings/mfd/rockchip,rk805.yaml
> index da2391530c16c..aafc80212c485 100644
> --- a/Documentation/devicetree/bindings/mfd/rockchip,rk805.yaml
> +++ b/Documentation/devicetree/bindings/mfd/rockchip,rk805.yaml
> @@ -77,6 +77,21 @@ properties:
> description:
> The input supply for LDO_REG3.
>
> + # pinctrl-bindings.txt allows the pin configuration nodes to be grandchildren
> + # of the pin controller, and the text binding this replaces used that layout:
> + # a "pinmux" node holding the nodes that carry "pins". The driver reaches both
> + # layouts, because pinconf_generic_dt_node_to_map() parses the referenced node
> + # and then walks its children.
> + pinmux:
> + type: object
> + additionalProperties: false
> + patternProperties:
> + '^.+$':
> + if:
> + type: object
> + then:
> + $ref: '#/$defs/rk805-pin-config'
[Severity: Medium]
Does this schema allow arbitrary non-object properties to silently pass
validation?
Because the if: type: object condition lacks an else: false clause, any
property matching the '^.+$' regex that is not an object will evaluate as
valid. Since the property matched patternProperties, it bypasses the
additionalProperties: false check.
Should an else: false clause be added to ensure non-object properties are
properly rejected?
> +
> regulators:
> type: object
> patternProperties:
> @@ -86,6 +101,38 @@ properties:
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260923074503.575956-1-quchaosheng000406@163.com?part=1
prev parent reply other threads:[~2026-09-23 7:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-23 7:45 [PATCH v4] dt-bindings: mfd: rockchip,rk805: Convert pinctrl to DT schema Quchaosheng
2026-09-23 7:45 ` Quchaosheng
2026-09-23 7:54 ` sashiko-bot [this message]
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=20260923075450.B11531F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=lee@kernel.org \
--cc=mfd@lists.linux.dev \
--cc=quchaosheng000406@163.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.