All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Inochi Amaoto" <inochiama@gmail.com>
Cc: conor+dt@kernel.org, devicetree@vger.kernel.org,
	linux-pci@vger.kernel.org, robh@kernel.org
Subject: Re: [PATCH v4 5/6] dt-bindings: PCI: spacemit: Introduce Spacemit K3 PCIe host controller
Date: Thu, 09 Jul 2026 04:09:54 +0000	[thread overview]
Message-ID: <20260709040954.B60671F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260709040027.958400-6-inochiama@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The `spacemit,k3-pcie` variant drops the requirement for `interrupts` without enforcing an alternative like `msi-parent` or `msi-map`, allowing incomplete device tree nodes to silently pass validation.
--

--- Patch [5]: [PATCH v4 5/6] dt-bindings: PCI: spacemit: Introduce Spacemit K3 PCIe host controller ---
commit 2fd5f19d10e79ab1400e6aaebad38037440b1cb4
Author: Inochi Amaoto <inochiama@gmail.com>

dt-bindings: PCI: spacemit: Introduce Spacemit K3 PCIe host controller

This commit adds device tree binding support for the PCIe controller on the
SpacemiT K3 SoC. It introduces a new compatible string and modifies the
schema constraints to accommodate differing register counts and interrupt
configurations between the K1 and K3 variants.

> diff --git a/Documentation/devicetree/bindings/pci/spacemit,k1-pcie-host.yaml b/Documentation/devicetree/bindings/pci/spacemit,k1-pcie-host.yaml
> index c4c00b5fcdc0c..54817d6fd9afe 100644
> --- a/Documentation/devicetree/bindings/pci/spacemit,k1-pcie-host.yaml
> +++ b/Documentation/devicetree/bindings/pci/spacemit,k1-pcie-host.yaml

[ ... ]

> @@ -102,13 +102,43 @@ patternProperties:
>  
>      unevaluatedProperties: false
>  
> +allOf:
> +  - $ref: /schemas/pci/snps,dw-pcie.yaml#
> +  - if:
> +      properties:
> +        compatible:
> +          contains:
> +            const: spacemit,k1-pcie
> +    then:

[ ... ]

> +      required:
> +        - interrupts
> +        - interrupt-names
> +    else:
> +      properties:
> +        reg:
> +          minItems: 5
> +
> +        reg-names:
> +          minItems: 5

[Severity: Medium]
Since interrupts and interrupt-names were removed from the global required
list below, should this else block enforce an alternative interrupt
requirement for the spacemit,k3-pcie controller, such as msi-parent or
msi-map?

Does this regression allow device tree nodes for spacemit,k3-pcie that are
missing both interrupts and msi-parent to silently pass schema validation,
potentially failing at runtime due to lacking an MSI domain or interrupt
line?

>  required:
>    - clocks
>    - clock-names
>    - resets
>    - reset-names
> -  - interrupts
> -  - interrupt-names
>    - spacemit,apmu
>  
>  unevaluatedProperties: false

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260709040027.958400-1-inochiama@gmail.com?part=5

  reply	other threads:[~2026-07-09  4:09 UTC|newest]

Thread overview: 72+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-09  4:00 [PATCH v4 0/6] riscv: spacemit: Add PCIe RC controller support for K3 Inochi Amaoto
2026-07-09  4:00 ` Inochi Amaoto
2026-07-09  4:00 ` [PATCH v4 1/6] PCI: spacemit-k1: Add device data support Inochi Amaoto
2026-07-09  4:00   ` Inochi Amaoto
2026-07-09  4:05   ` sashiko-bot
2026-07-09  7:09   ` Andy Shevchenko
2026-07-09  7:09     ` Andy Shevchenko
2026-07-10 16:01   ` Alex Elder
2026-07-10 16:01     ` Alex Elder
2026-07-12  7:38     ` Inochi Amaoto
2026-07-12  7:38       ` Inochi Amaoto
2026-07-09  4:00 ` [PATCH v4 2/6] PCI: spacemit-k1: Add multiple PHY handles support Inochi Amaoto
2026-07-09  4:00   ` Inochi Amaoto
2026-07-09  4:09   ` sashiko-bot
2026-07-09  7:16   ` Andy Shevchenko
2026-07-09  7:16     ` Andy Shevchenko
2026-07-10  1:57     ` Inochi Amaoto
2026-07-10  1:57       ` Inochi Amaoto
2026-07-10  8:07       ` Andy Shevchenko
2026-07-10  8:07         ` Andy Shevchenko
2026-07-10 10:55         ` Inochi Amaoto
2026-07-10 10:55           ` Inochi Amaoto
2026-07-10 12:42           ` Alex Elder
2026-07-10 12:42             ` Alex Elder
2026-07-11 13:01             ` Andy Shevchenko
2026-07-11 13:01               ` Andy Shevchenko
2026-07-11 12:44           ` Andy Shevchenko
2026-07-11 12:44             ` Andy Shevchenko
2026-07-12  5:41             ` Inochi Amaoto
2026-07-12  5:41               ` Inochi Amaoto
2026-07-12  9:35               ` Andy Shevchenko
2026-07-12  9:35                 ` Andy Shevchenko
2026-07-12 10:04                 ` Inochi Amaoto
2026-07-12 10:04                   ` Inochi Amaoto
2026-07-10 12:51     ` Alex Elder
2026-07-10 12:51       ` Alex Elder
2026-07-11 13:04       ` Andy Shevchenko
2026-07-11 13:04         ` Andy Shevchenko
2026-07-10 16:01   ` Alex Elder
2026-07-10 16:01     ` Alex Elder
2026-07-12  7:27     ` Inochi Amaoto
2026-07-12  7:27       ` Inochi Amaoto
2026-07-09  4:00 ` [PATCH v4 3/6] PCI: spacemit-k1: Add device id update helper Inochi Amaoto
2026-07-09  4:00   ` Inochi Amaoto
2026-07-09  4:06   ` sashiko-bot
2026-07-10 16:01   ` Alex Elder
2026-07-10 16:01     ` Alex Elder
2026-07-12  7:32     ` Inochi Amaoto
2026-07-12  7:32       ` Inochi Amaoto
2026-07-09  4:00 ` [PATCH v4 4/6] dt-bindings: PCI: snps,dw-pcie: Add msi-parent for MSI handle check Inochi Amaoto
2026-07-09  4:00   ` Inochi Amaoto
2026-07-09  4:06   ` sashiko-bot
2026-07-10 16:01   ` Alex Elder
2026-07-10 16:01     ` Alex Elder
2026-07-09  4:00 ` [PATCH v4 5/6] dt-bindings: PCI: spacemit: Introduce Spacemit K3 PCIe host controller Inochi Amaoto
2026-07-09  4:00   ` Inochi Amaoto
2026-07-09  4:09   ` sashiko-bot [this message]
2026-07-10 16:01   ` Alex Elder
2026-07-10 16:01     ` Alex Elder
2026-07-12  5:43     ` Inochi Amaoto
2026-07-12  5:43       ` Inochi Amaoto
2026-07-09  4:00 ` [PATCH v4 6/6] PCI: spacemit-k1: Add Spacemit K3 PCIe host controller support Inochi Amaoto
2026-07-09  4:00   ` Inochi Amaoto
2026-07-09  4:12   ` sashiko-bot
2026-07-09  7:21   ` Andy Shevchenko
2026-07-09  7:21     ` Andy Shevchenko
2026-07-12  5:45     ` Inochi Amaoto
2026-07-12  5:45       ` Inochi Amaoto
2026-07-10 16:01   ` Alex Elder
2026-07-10 16:01     ` Alex Elder
2026-07-12  7:22     ` Inochi Amaoto
2026-07-12  7:22       ` Inochi Amaoto

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=20260709040954.B60671F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=inochiama@gmail.com \
    --cc=linux-pci@vger.kernel.org \
    --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.