From: sashiko-bot@kernel.org
To: "Nihal Kumar Gupta" <nihal.gupta@oss.qualcomm.com>
Cc: devicetree@vger.kernel.org, Frank.Li@kernel.org,
conor+dt@kernel.org, imx@lists.linux.dev, media-ci@linuxtv.org,
robh@kernel.org
Subject: Re: [PATCH v6 1/6] dt-bindings: media: qcom: Add Shikra CAMSS compatible
Date: Thu, 23 Jul 2026 04:54:41 +0000 [thread overview]
Message-ID: <20260723045442.78A8D1F00A3A@smtp.kernel.org> (raw)
In-Reply-To: <20260723-shikra-camss-review-v6-1-7c46f9bbb4db@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] The YAML binding uses a global `oneOf` block for `iommus` instead of using `if-then` conditionals, failing to conditionally enforce the hardware-specific constraints for each compatible string.
- [Medium] The `qcom,shikra-camss` compatible string incorrectly uses `qcom,qcm2290-camss` as a fallback despite being a hardware subset, violating Device Tree compatibility principles.
--
--- Patch [1]: [PATCH v6 1/6] dt-bindings: media: qcom: Add Shikra CAMSS compatible ---
commit 945dc84434e7636d9e3d6c379f213e274cca7db3
Author: Nihal Kumar Gupta <nihal.gupta@oss.qualcomm.com>
dt-bindings: media: qcom: Add Shikra CAMSS compatible
This commit adds a new compatible string for the Shikra CAMSS IP, using
qcom,qcm2290-camss as a fallback. It modifies the iommus property to allow
either one or four items, as Shikra omits the CDM and OPE blocks present in
QCM2290.
> diff --git a/Documentation/devicetree/bindings/media/qcom,qcm2290-camss.yaml b/Documentation/devicetree/bindings/media/qcom,qcm2290-camss.yaml
> index 391d0f6f67ef5..490a7f3a8c5ff 100644
> --- a/Documentation/devicetree/bindings/media/qcom,qcm2290-camss.yaml
> +++ b/Documentation/devicetree/bindings/media/qcom,qcm2290-camss.yaml
> @@ -14,7 +14,11 @@ description:
>
> properties:
> compatible:
> - const: qcom,qcm2290-camss
> + oneOf:
> + - items:
> + - const: qcom,shikra-camss
> + - const: qcom,qcm2290-camss
[Severity: Medium]
Since the commit message states Shikra omits the CDM and OPE blocks, is it
accurate to use qcom,qcm2290-camss as a fallback?
If an operating system driver binds to the qcom,qcm2290-camss fallback and
assumes the presence of the CDM and OPE blocks, couldn't this lead to bus
faults or initialization failures since those blocks are absent on Shikra
hardware?
> + - const: qcom,qcm2290-camss
>
> reg:
> maxItems: 9
[ ... ]
> @@ -76,7 +80,14 @@ properties:
> - const: sf_mnoc
>
> iommus:
> - maxItems: 4
> + oneOf:
> + - items:
> + - description: S1 HLOS VFE non-protected (VFE only)
> + - items:
> + - description: S1 HLOS VFE non-protected
> + - description: S1 HLOS CDM non-protected
> + - description: S1 HLOS OPE read non-protected
> + - description: S1 HLOS OPE write non-protected
[Severity: Medium]
Does replacing maxItems with a global oneOf block weaken schema validation
for the existing qcom,qcm2290-camss hardware?
By using a globally permissive oneOf instead of using if-then conditionals
in an allOf block, a device tree specifying qcom,qcm2290-camss with only 1
IOMMU will now silently pass validation, even though it requires 4 IOMMUs.
Similarly, Shikra could incorrectly pass with 4 IOMMUs. Should these
hardware-specific constraints be enforced conditionally based on the
compatible string?
>
> power-domains:
> items:
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260723-shikra-camss-review-v6-0-7c46f9bbb4db@oss.qualcomm.com?part=1
next prev parent reply other threads:[~2026-07-23 4:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-23 4:43 [PATCH v6 0/6] Add CAMSS and IMX577 sensor support for Shikra EVK Nihal Kumar Gupta
2026-07-23 4:43 ` [PATCH v6 1/6] dt-bindings: media: qcom: Add Shikra CAMSS compatible Nihal Kumar Gupta
2026-07-23 4:54 ` sashiko-bot [this message]
2026-07-23 4:43 ` [PATCH v6 2/6] arm64: dts: qcom: shikra: Add CAMSS node Nihal Kumar Gupta
2026-07-23 4:43 ` [PATCH v6 3/6] arm64: dts: qcom: shikra: Add CCI definitions Nihal Kumar Gupta
2026-07-23 4:43 ` [PATCH v6 4/6] arm64: dts: qcom: shikra: Add pin configuration for mclks Nihal Kumar Gupta
2026-07-23 4:43 ` [PATCH v6 5/6] arm64: dts: qcom: shikra-cqm-cqs-evk-imx577-camera: Add DT overlay Nihal Kumar Gupta
2026-07-23 4:44 ` [PATCH v6 6/6] arm64: dts: qcom: shikra-iqs-evk-imx577-camera: " 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=20260723045442.78A8D1F00A3A@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=Frank.Li@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=imx@lists.linux.dev \
--cc=media-ci@linuxtv.org \
--cc=nihal.gupta@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