From: sashiko-bot@kernel.org
To: "Oleg Keri" <okerixx@gmail.com>
Cc: lee@kernel.org, mfd@lists.linux.dev, devicetree@vger.kernel.org,
robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 1/2] dt-bindings: mfd: qcom,pm8008: make the interrupt line optional
Date: Tue, 08 Sep 2026 13:22:48 +0000 [thread overview]
Message-ID: <20260908132251.436F81F00A3F@smtp.kernel.org> (raw)
In-Reply-To: <20260908130745.2545-2-okerixx@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] Missing mutual dependency between `interrupt-controller` and `#interrupt-cells` allows incomplete device tree nodes to pass schema validation.
--
commit 06521a0a86f05dc0e7f24260abb779ba95c5ab55
Author: Oleg Keri <okerixx@gmail.com>
dt-bindings: mfd: qcom,pm8008: make the interrupt line optional
The PM8008 raises an interrupt for its own status, its temperature alarm
and its two GPIOs, but the pin does not have to be routed. This commit drops
interrupts, interrupt-controller, and #interrupt-cells from the required list
and adds dependentRequired constraints.
> diff --git a/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml b/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml
> index 0c6e1870db1dc..db1592e115e8c 100644
> --- a/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml
> +++ b/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml
[ ... ]
> @@ -97,10 +96,12 @@ required:
> - gpio-controller
> - "#gpio-cells"
> - gpio-ranges
> - - interrupt-controller
> - - "#interrupt-cells"
> - "#thermal-sensor-cells"
>
> +dependentRequired:
> + interrupt-controller: [ interrupts ]
> + "#interrupt-cells": [ interrupts ]
> +
[Severity: Medium]
Does this regression allow incomplete device tree nodes to pass schema
validation?
The missing mutual dependency between interrupt-controller and
#interrupt-cells means a device tree node could provide interrupt-controller
but omit #interrupt-cells (or vice versa) and still pass validation.
Such a node would fail to function correctly at runtime as an interrupt
provider. Should these two properties be required together?
> additionalProperties: false
>
> examples:
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260908130745.2545-1-okerixx@gmail.com?part=1
next prev parent reply other threads:[~2026-09-08 13:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-08 13:07 [PATCH 0/2] mfd: qcom-pm8008: support PMICs with no interrupt line Oleg Keri
2026-09-08 13:07 ` [PATCH 1/2] dt-bindings: mfd: qcom,pm8008: make the interrupt line optional Oleg Keri
2026-09-08 13:22 ` sashiko-bot [this message]
2026-09-08 13:07 ` [PATCH 2/2] mfd: qcom-pm8008: support PMICs with no interrupt line Oleg Keri
2026-09-08 13:15 ` sashiko-bot
2026-09-22 10:14 ` Lee Jones
2026-09-22 11:00 ` Oleg Keri
2026-09-08 13:40 ` [PATCH 0/2] " Oleg Keri
2026-09-10 9:10 ` Jishnu Prakash
2026-09-10 9:19 ` Konrad Dybcio
2026-09-10 12:44 ` Oleg Keri
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=20260908132251.436F81F00A3F@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=okerixx@gmail.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.