From: sashiko-bot@kernel.org
To: "Janne Grunau" <j@jannau.net>
Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, robh@kernel.org
Subject: Re: [PATCH v3 2/9] dt-bindings: interrupt-controller: apple,aic2: Invert #interrupt-cells condition
Date: Fri, 24 Jul 2026 18:28:06 +0000 [thread overview]
Message-ID: <20260724182807.5B24C1F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260724-apple-t603x-initial-devices-v3-2-bbeba0420603@jannau.net>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] The newly inverted conditional block fails to include the M3 generation multi-die SoCs (e.g., `apple,t6031-aic3`), incorrectly restricting them to 3 interrupt cells and defeating the purpose of the patch.
- [Medium] The compatible string `apple,t6031-aic3` explicitly mentioned in the commit message is missing from the top-level schema definition.
--
--- Patch [2]: [PATCH v3 2/9] dt-bindings: interrupt-controller: apple,aic2: Invert #interrupt-cells condition ---
commit fc6ebf906f40d7b153e442ba25ef2691b2d4b00f
Author: Janne Grunau <j@jannau.net>
dt-bindings: interrupt-controller: apple,aic2: Invert #interrupt-cells condition
This commit changes the conditional logic for #interrupt-cells in the Apple
AIC2 binding. It aims to explicitly list multi-die SoC compatibles that
require 4 cells instead of defaulting to 4.
> The condition for 3 or 4 #interrupt-cells list compatibles for the 3
> cells variant (not used in SoCs consisting out of multiple dies). This
> includes the AICv3 base compatible "apple,t8122-aic3". This will match
> compatible = "apple,t6031-aic3", "apple,t8122-aic3";
> shared for M3 Max and Ultra based devices which require the additional
> interrupt cell for the die number.
[Severity: Medium]
Should apple,t6031-aic3 be added to the top-level properties:compatible array?
Any device tree using the apple,t6031-aic3 compatible string will fail
dt_binding_check validation because it is entirely undocumented in the schema.
> diff --git a/Documentation/devicetree/bindings/interrupt-controller/apple,aic2.yaml b/Documentation/devicetree/bindings/interrupt-controller/apple,aic2.yaml
> index d0d9a90e96e7b..a94787939d345 100644
> --- a/Documentation/devicetree/bindings/interrupt-controller/apple,aic2.yaml
> +++ b/Documentation/devicetree/bindings/interrupt-controller/apple,aic2.yaml
> @@ -128,16 +128,16 @@ allOf:
> compatible:
> contains:
> enum:
> - - apple,t8112-aic
> - - apple,t8122-aic3
> + - apple,t6000-aic
> + - apple,t6020-aic
[Severity: Medium]
Does this enum explicitly list all multi-die SoCs that require 4 cells?
The commit message mentions that the 4-cell requirement applies to
apple,t6031-aic3, but since it is missing from this newly added enum,
the schema logic will fall into the else branch and apply the const: 3
constraint.
Will this incorrectly restrict M3 Max/Ultra multi-die SoCs to 3 interrupt
cells, causing valid device trees to fail schema validation?
> then:
> properties:
> '#interrupt-cells':
> - const: 3
> + const: 4
> else:
> properties:
> '#interrupt-cells':
> - const: 4
> + const: 3
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260724-apple-t603x-initial-devices-v3-0-bbeba0420603@jannau.net?part=2
next prev parent reply other threads:[~2026-07-24 18:28 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-24 18:16 [PATCH v3 0/9] Initial Apple M3 Pro, Max and Ultra device trees Janne Grunau
2026-07-24 18:16 ` [PATCH v3 1/9] dt-bindings: arm: apple: Add M3 Pro/Max/Ultra devices (T603x) Janne Grunau
2026-07-24 18:16 ` [PATCH v3 2/9] dt-bindings: interrupt-controller: apple,aic2: Invert #interrupt-cells condition Janne Grunau
2026-07-24 18:28 ` sashiko-bot [this message]
2026-07-24 18:16 ` [PATCH v3 3/9] dt-bindings: interrupt-controller: apple,aic2: Add apple,t6031-aic3 compatible Janne Grunau
2026-07-24 18:16 ` [PATCH v3 4/9] dt-bindings: arm: apple: apple,pmgr: Add t6030 and t6031 compatibles Janne Grunau
2026-07-24 18:35 ` sashiko-bot
2026-07-24 18:16 ` [PATCH v3 5/9] dt-bindings: power: apple,pmgr-pwrstate: " Janne Grunau
2026-07-24 18:16 ` [PATCH v3 6/9] dt-bindings: i2c: apple,i2c: " Janne Grunau
2026-07-24 18:16 ` [PATCH v3 7/9] dt-bindings: pwm: apple,s5l-fpwm: " Janne Grunau
2026-07-24 18:16 ` [PATCH v3 8/9] arm64: dts: apple: Initial T603[124] (M3 Max and Ultra) device trees Janne Grunau
2026-07-24 18:16 ` [PATCH v3 9/9] arm64: dts: apple: Initial T6030 (M3 Pro) " Janne Grunau
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=20260724182807.5B24C1F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=j@jannau.net \
--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