Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Neeraj Soni" <neeraj.soni@oss.qualcomm.com>
Cc: devicetree@vger.kernel.org, conor+dt@kernel.org, robh@kernel.org
Subject: Re: [PATCH v7 1/3] dt-bindings: mmc: sdhci-msm: Add ICE phandle
Date: Mon, 08 Jun 2026 04:30:19 +0000	[thread overview]
Message-ID: <20260608043020.959111F00893@smtp.kernel.org> (raw)
In-Reply-To: <20260608041650.541502-2-neeraj.soni@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] Incomplete DT binding constraint: The schema disallows the embedded `ice` register map when the `qcom,ice` phandle is present, but fails to disallow the embedded `ice` clock. This allows device trees to mistakenly specify both the `qcom,ice` phandle and the legacy `ice` clock on the SDHCI node, passing schema validation while double-modeling the clock resource.
--

commit 1a4e3c2586694f366860741fba23e497632a71fa
Author: Neeraj Soni <neeraj.soni@oss.qualcomm.com>

dt-bindings: mmc: sdhci-msm: Add ICE phandle

This commit introduces the qcom,ice property to reference the Inline Crypto
Engine hardware block via a phandle. When this property is present, it
updates the allOf conditional blocks to disallow the embedded register
region in the SDHCI node to prevent double-modeling. Older SoCs without
this block remain unaffected.

Link: https://lore.kernel.org/r/20260310113557.348502-2-neeraj.soni@oss.qualcomm.com

> diff --git a/Documentation/devicetree/bindings/mmc/qcom,sdhci-msm.yaml b/Documentation/devicetree/bindings/mmc/qcom,sdhci-msm.yaml
> index bd558a11b7929..b3fcc1673c106 100644
> --- a/Documentation/devicetree/bindings/mmc/qcom,sdhci-msm.yaml
> +++ b/Documentation/devicetree/bindings/mmc/qcom,sdhci-msm.yaml

[ ... ]

> @@ -198,35 +203,69 @@ allOf:
>              enum:
>                - qcom,sdhci-msm-v4
>      then:
> -      properties:
> -        reg:
> -          minItems: 2
> -          items:
> -            - description: Host controller register map
> -            - description: SD Core register map
> -            - description: CQE register map
> -            - description: Inline Crypto Engine register map
> -        reg-names:
> -          minItems: 2
> -          items:
> -            - const: hc
> -            - const: core
> -            - const: cqhci
> -            - const: ice
> +      if:
> +        required:
> +          - qcom,ice
> +      then:
> +        properties:
> +          reg:
> +            minItems: 2
> +            items:
> +              - description: Host controller register map
> +              - description: SD Core register map
> +              - description: CQE register map
> +          reg-names:
> +            minItems: 2
> +            items:
> +              - const: hc
> +              - const: core
> +              - const: cqhci

[Severity: Medium]
Does this regression allow device trees to mistakenly specify the legacy "ice"
clock on the SDHCI node even when the "qcom,ice" phandle is present?

The commit message states the intent is to avoid double-modeling of the
Inline Crypto Engine block, and the allOf conditional block correctly
restricts the "ice" register map here. However, the schema doesn't seem to
disallow the embedded "ice" clock in clock-names when "qcom,ice" is provided.

Should there be corresponding restrictions for clock-names here to fully
prevent double-modeling the clock resource?

[ ... ]

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260608041650.541502-1-neeraj.soni@oss.qualcomm.com?part=1

  reply	other threads:[~2026-06-08  4:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-08  4:16 [PATCH v7 0/3] Enable Inline crypto engine for kodiak and monaco Neeraj Soni
2026-06-08  4:16 ` [PATCH v7 1/3] dt-bindings: mmc: sdhci-msm: Add ICE phandle Neeraj Soni
2026-06-08  4:30   ` sashiko-bot [this message]
2026-06-08  6:10   ` Kuldeep Singh
2026-06-08  4:16 ` [PATCH v7 2/3] arm64: dts: qcom: kodiak: enable the inline crypto engine for SDHC Neeraj Soni
2026-06-08  4:16 ` [PATCH v7 3/3] arm64: dts: qcom: monaco: " Neeraj Soni

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=20260608043020.959111F00893@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=neeraj.soni@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