From: Inochi Amaoto <inochiama@gmail.com>
To: sashiko-reviews@lists.linux.dev, Inochi Amaoto <inochiama@gmail.com>
Cc: robh@kernel.org, devicetree@vger.kernel.org, conor+dt@kernel.org,
linux-pci@vger.kernel.org
Subject: Re: [PATCH v2 4/5] dt-bindings: PCI: spacemit: Introduce Spacemit K3 PCIe host controller
Date: Sun, 17 May 2026 12:38:39 +0800 [thread overview]
Message-ID: <aglF_fbl--RgS7gQ@inochi.infowork> (raw)
In-Reply-To: <20260517024848.4F346C19425@smtp.kernel.org>
On Sun, May 17, 2026 at 02:48:47AM +0000, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
> - [Medium] The binding completely omits the `interrupts` and `interrupt-names` properties for the host controller.
> - [Medium] The schema omits standard legacy INTx interrupt routing properties (`#interrupt-cells`, `interrupt-map`, `interrupt-map-mask`).
> - [Low] The `phy-names` property lacks an `items` definition to restrict valid string values.
> --
>
> commit 7b8ba34456e71d6a9cf1028caa5504d64e8f58ba
> 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. The controller is based on the Synopsys DesignWare PCIe IP
> with some extra link and reset state control.
>
> > diff --git a/Documentation/devicetree/bindings/pci/spacemit,k3-pcie-host.yaml b/Documentation/devicetree/bindings/pci/spacemit,k3-pcie-host.yaml
> > new file mode 100644
> > index 0000000000000..46147a37a9ce6
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/pci/spacemit,k3-pcie-host.yaml
> [ ... ]
> > + reset-names:
> > + items:
> > + - const: dbi
> > + - const: mstr
> > + - const: slv
> > +
> > + msi-parent: true
> > +
>
> The driver implementation reads and clears interrupt status registers for
> host-level events, and references registers for receiving INTx events from
> downstream devices.
>
> Should this binding include interrupts and interrupt-names properties to
> document the host's interrupt routing?
>
> Additionally, should standard legacy INTx interrupt routing properties like
> #interrupt-cells, interrupt-map, and interrupt-map-mask be included in the
> schema and example to support downstream devices that do not use MSI?
>
The driver just does the interrupt cleanup as it requires, and no
additional interrupt is needed
> > + phys:
> > + description:
> > + PHY phandle from the Combo PHY, the lane number does not depends
> > + on this, since the number of lanes provided by Combo PHY can be
> > + 1 or 2.
> > + minItems: 1
> > + maxItems: 6
> > +
> > + phy-names:
> > + minItems: 1
> > + maxItems: 6
>
> This isn't a bug, but the phy-names property lacks an items definition to
> restrict valid string values. The schema allows any arbitrary string here.
>
> Since the driver retrieves PHYs by index rather than name, is this property
> necessary, or should the expected string items be defined?
>
The driver just use index, and the name follow generic DesignWare
binding.
> [ ... ]
>
> --
> Sashiko AI review · https://sashiko.dev/#/patchset/20260517014841.254085-1-inochiama@gmail.com?part=4
Regards,
Inochi
next prev parent reply other threads:[~2026-05-17 4:39 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-17 1:48 [PATCH v2 0/5] riscv: spacemit: Add PCIe RC controller support for K3 Inochi Amaoto
2026-05-17 1:48 ` [PATCH v2 1/5] PCI: spacemit-k1: Add device data support Inochi Amaoto
2026-05-17 1:48 ` [PATCH v2 2/5] PCI: spacemit-k1: Add multiple PHY handles support Inochi Amaoto
2026-05-17 8:07 ` Andy Shevchenko
2026-05-18 1:18 ` Inochi Amaoto
2026-06-09 16:11 ` Alex Elder
2026-05-17 1:48 ` [PATCH v2 3/5] dt-bindings: PCI: snps,dw-pcie: Add msi-parent for MSI handle check Inochi Amaoto
2026-05-17 1:48 ` [PATCH v2 4/5] dt-bindings: PCI: spacemit: Introduce Spacemit K3 PCIe host controller Inochi Amaoto
2026-05-17 2:48 ` sashiko-bot
2026-05-17 4:38 ` Inochi Amaoto [this message]
2026-06-01 22:42 ` Rob Herring
2026-06-03 9:24 ` Inochi Amaoto
2026-06-09 14:03 ` Manivannan Sadhasivam
2026-06-09 16:11 ` Alex Elder
2026-07-03 1:51 ` Inochi Amaoto
2026-05-17 1:48 ` [PATCH v2 5/5] PCI: spacemit-k1: Add Spacemit K3 PCIe host controller support Inochi Amaoto
2026-05-17 3:16 ` sashiko-bot
2026-05-17 4:41 ` Inochi Amaoto
2026-06-09 14:18 ` Manivannan Sadhasivam
2026-06-09 14:49 ` Andy Shevchenko
2026-06-09 16:11 ` Alex Elder
2026-06-09 16:11 ` Alex Elder
2026-06-22 8:50 ` 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=aglF_fbl--RgS7gQ@inochi.infowork \
--to=inochiama@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox