Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Krzysztof Kozlowski" <krzysztof.kozlowski@oss.qualcomm.com>,
	devicetree@vger.kernel.org
Cc: robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH] dt-bindings: interconnect: qcom: Relax child node name pattern
Date: Wed, 28 Oct 2026 08:19:03 +0000	[thread overview]
Message-ID: <sashiko-outbox-187610@kernel.org> (raw)
In-Reply-To: <20261028081243.38562-2-krzysztof.kozlowski@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] dt-bindings: interconnect: qcom: unupdated child pattern in allOf blocks
--

commit f673587b21cccff8d6834d16d82048b29f591b52
Author: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>

dt-bindings: interconnect: qcom: Relax child node name pattern

This commit relaxes the child node patternProperties regex in several
Qualcomm interconnect bindings so that single child nodes can be named
interconnect rather than requiring a suffix.

[ ... ]

> diff --git a/Documentation/devicetree/bindings/interconnect/qcom,shikra.yaml b/Documentation/devicetree/bindings/interconnect/qcom,shikra.yaml
> index a0c26de94ccf7..456b56222866d 100644
> --- a/Documentation/devicetree/bindings/interconnect/qcom,shikra.yaml
> +++ b/Documentation/devicetree/bindings/interconnect/qcom,shikra.yaml
> @@ -31,9 +31,8 @@ properties:
>      minItems: 1
>      maxItems: 4
>  
> -# Child node's properties
>  patternProperties:
> -  '^interconnect-[a-z0-9]+$':
> +  '^interconnect(-[a-z0-9\-]+)?$':
>      type: object
>      description:
>        The interconnect providers do not have a separate QoS register space,
> diff --git a/Documentation/devicetree/bindings/interconnect/qcom,sm6115.yaml b/Documentation/devicetree/bindings/interconnect/qcom,sm6115.yaml
> index cdae0acf3a1da..0024fd29c0bc3 100644
> --- a/Documentation/devicetree/bindings/interconnect/qcom,sm6115.yaml
> +++ b/Documentation/devicetree/bindings/interconnect/qcom,sm6115.yaml
> @@ -31,9 +31,8 @@ properties:
>      minItems: 1
>      maxItems: 4
>  
> -# Child node's properties
>  patternProperties:
> -  '^interconnect-[a-z0-9]+$':
> +  '^interconnect(-[a-z0-9\-]+)?$':
>      type: object
>      description:
>        The interconnect providers do not have a separate QoS register space,

[Severity: Medium]
In both Documentation/devicetree/bindings/interconnect/qcom,shikra.yaml and
Documentation/devicetree/bindings/interconnect/qcom,sm6115.yaml, the top-level
patternProperties entry is relaxed to '^interconnect(-[a-z0-9\-]+)?$', but the
allOf conditional blocks that disallow child interconnect nodes still use the
old pattern:

Documentation/devicetree/bindings/interconnect/qcom,shikra.yaml:
  - if:
      properties:
        compatible:
          const: qcom,shikra-mem-noc-core
    then:
      ...
      patternProperties:
        '^interconnect-[a-z0-9]+$': false
  ...
  - if:
      properties:
        compatible:
          const: qcom,shikra-config-noc
    then:
      ...
      patternProperties:
        '^interconnect-[a-z0-9]+$': false

Documentation/devicetree/bindings/interconnect/qcom,sm6115.yaml:
  - if:
      properties:
        compatible:
          const: qcom,sm6115-bimc
    then:
      ...
      patternProperties:
        '^interconnect-[a-z0-9]+$': false

  - if:
      properties:
        compatible:
          const: qcom,sm6115-cnoc
    then:
      ...
      patternProperties:
        '^interconnect-[a-z0-9]+$': false

Because a child node named interconnect (or with multiple hyphens) matches the
top-level patternProperties but not the pattern in the allOf blocks, won't
prohibited child nodes under qcom,shikra-mem-noc-core, qcom,shikra-config-noc,
qcom,sm6115-bimc, and qcom,sm6115-cnoc silently pass schema validation? Should
those allOf patternProperties entries also be updated to
'^interconnect(-[a-z0-9\-]+)?$': false?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261028081243.38562-2-krzysztof.kozlowski@oss.qualcomm.com?part=1

  reply	other threads:[~2026-10-28  8:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-28  8:12 [PATCH] dt-bindings: interconnect: qcom: Relax child node name pattern Krzysztof Kozlowski
2026-10-28  8:19 ` sashiko-bot [this message]
2026-10-28  8:26 ` Krzysztof Kozlowski

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=sashiko-outbox-187610@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 \
    /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