Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Nihal Kumar Gupta" <nihal.gupta@oss.qualcomm.com>
Cc: devicetree@vger.kernel.org, linux-phy@lists.infradead.org,
	robh@kernel.org, conor+dt@kernel.org, media-ci@linuxtv.org,
	vkoul@kernel.org, neil.armstrong@linaro.org, olteanv@gmail.com
Subject: Re: [PATCH v2 4/8] dt-bindings: media: Add CAMSS device for Maili
Date: Tue, 13 Oct 2026 11:24:38 +0000	[thread overview]
Message-ID: <sashiko-outbox-169617@kernel.org> (raw)
In-Reply-To: <20261013-hawi-maili-camss-v2-4-fc93222da89c@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] dt-bindings: media: missing port constraints for maili-camss variant
- [Medium] dt-bindings: media: invalid superset fallback compatible for hardware subset
--

commit 5533f51204e6b2bb4713bbf162c5fc5e10ea6c2b
Author: Nihal Kumar Gupta <nihal.gupta@oss.qualcomm.com>

dt-bindings: media: Add CAMSS device for Maili

This commit updates the CAMSS device tree bindings to support the Maili
hardware variant. It adds qcom,maili-camss as a compatible string, falling
back to the existing qcom,hawi-camss compatible.

> diff --git a/Documentation/devicetree/bindings/media/qcom,hawi-camss.yaml b/Documentation/devicetree/bindings/media/qcom,hawi-camss.yaml
> index 5bf0dca3d2462..d1d53d6f024cb 100644
> --- a/Documentation/devicetree/bindings/media/qcom,hawi-camss.yaml
> +++ b/Documentation/devicetree/bindings/media/qcom,hawi-camss.yaml
[ ... ]
>  properties:
>    compatible:
> -    const: qcom,hawi-camss
> +    oneOf:
> +      - const: qcom,hawi-camss
> +      - items:
> +          - const: qcom,maili-camss
> +          - const: qcom,hawi-camss

[Severity: Medium]
Since Maili has 5 CSIPHYs while Hawi has 6, Maili is a hardware subset of Hawi.

Is it safe to claim compatibility with the Hawi superset?

If an older kernel that implements support for qcom,hawi-camss boots on
Maili hardware and binds using this fallback compatible, it might attempt
to access registers, clocks, or state machines for the 6th CSIPHY which
does not physically exist on the Maili hardware.

Could this fallback cause boot failures or undefined behavior?

[Severity: Medium]
Will this schema silently pass invalid device trees for Maili that define a
non-existent 6th CSIPHY port (port@5)?

The base schema in Documentation/devicetree/bindings/media/qcom,hawi-camss.yaml
unconditionally defines:

    patternProperties:
      "^port@[0-5]$":

which allows up to 6 ports globally.

If a device tree is created for Maili using qcom,maili-camss and incorrectly
includes a port@5 node, it will pass validation.

Since Maili has only 5 CSIPHY instances, should an allOf conditional block be
added to restrict the ports property (for example, setting port@5: false or
lowering maxItems) when the compatible string contains qcom,maili-camss?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261013-hawi-maili-camss-v2-0-fc93222da89c@oss.qualcomm.com?part=4

  reply	other threads:[~2026-10-13 11:24 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-13 11:02 [PATCH v2 0/8] Add CAMSS support for Qualcomm Hawi and Maili Nihal Kumar Gupta
2026-10-13 11:02 ` [PATCH v2 1/8] dt-bindings: i2c: qcom,i2c-cci: Add Hawi compatible Nihal Kumar Gupta
2026-10-13 12:24   ` Loic Poulain
2026-10-13 11:02 ` [PATCH v2 2/8] dt-bindings: phy: qcom,x1e80100-csi2-phy: Add Hawi and Maili compatibles Nihal Kumar Gupta
2026-10-13 11:02 ` [PATCH v2 3/8] dt-bindings: media: Add CAMSS device for Hawi Nihal Kumar Gupta
2026-10-13 11:19   ` sashiko-bot
2026-10-13 11:02 ` [PATCH v2 4/8] dt-bindings: media: Add CAMSS device for Maili Nihal Kumar Gupta
2026-10-13 11:24   ` sashiko-bot [this message]
2026-10-13 11:02 ` [PATCH v2 5/8] phy: qcom-mipi-csi2: Add Hawi support Nihal Kumar Gupta
2026-10-13 11:02 ` [PATCH v2 6/8] media: qcom: camss: Add Hawi compatible camss driver Nihal Kumar Gupta
2026-10-13 11:51   ` sashiko-bot
2026-10-13 11:02 ` [PATCH v2 7/8] media: qcom: camss: csid: Add support for CSID 1190 Nihal Kumar Gupta
2026-10-13 12:06   ` sashiko-bot
2026-10-13 11:02 ` [PATCH v2 8/8] media: qcom: camss: vfe: Add support for VFE 1190 Nihal Kumar Gupta

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-169617@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-phy@lists.infradead.org \
    --cc=media-ci@linuxtv.org \
    --cc=neil.armstrong@linaro.org \
    --cc=nihal.gupta@oss.qualcomm.com \
    --cc=olteanv@gmail.com \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=vkoul@kernel.org \
    /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