From: sashiko-bot@kernel.org
To: "Marek Vasut" <marek.vasut+renesas@mailbox.org>
Cc: wsa+renesas@sang-engineering.com, devicetree@vger.kernel.org,
robh@kernel.org, linux-pci@vger.kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v5 1/6] dt-bindings: PCI: rcar-gen4-pci-host: Add R-Car X5H PCIe4 compatible
Date: Mon, 21 Sep 2026 20:39:42 +0000 [thread overview]
Message-ID: <20260921203942.CF7E51F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260921202823.72620-2-marek.vasut+renesas@mailbox.org>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] dt-bindings: pci: missing phys requirement for Gen5 PCIe
- [Medium] dt-bindings: pci: missing minItems allows incomplete reg arrays to pass validation
--
commit 514029652899ad708ecb1a48b34db8779da18327
Author: Marek Vasut <marek.vasut+renesas@mailbox.org>
dt-bindings: PCI: rcar-gen4-pci-host: Add R-Car X5H PCIe4 compatible
Document bindings for R-Car X5H (R8A78000) PCIe4 host module. The commit
introduces the "renesas,rcar-gen5-pcie4" compatible string and adjusts the
"reg" and "reg-names" constraints, as the PHY is now a separate IP for Gen5.
> diff --git a/Documentation/devicetree/bindings/pci/rcar-gen4-pci-host.yaml b/Documentation/devicetree/bindings/pci/rcar-gen4-pci-host.yaml
> index 64f456c6a75a1..9767a52f3904e 100644
> --- a/Documentation/devicetree/bindings/pci/rcar-gen4-pci-host.yaml
> +++ b/Documentation/devicetree/bindings/pci/rcar-gen4-pci-host.yaml
[ ... ]
> @@ -84,6 +74,46 @@ required:
> - resets
> - reset-names
>
> +allOf:
> + - $ref: snps,dw-pcie.yaml#
> + - if:
> + properties:
> + compatible:
> + contains:
> + const: renesas,rcar-gen4-pcie
> + then:
> + properties:
> + reg:
> + maxItems: 7
[Severity: Medium]
By moving the "reg" and "reg-names" properties into this allOf conditional
block, does this bypass the automatic array length constraint inference from
dt-schema?
Without an explicit "minItems: 7" constraint here, it looks like the schema
will fall back to inheriting "minItems: 2" from the base schema in
snps,dw-pcie.yaml#. Could this allow a device tree node with only two
registers (like "dbi" and "config") to incorrectly pass validation?
> +
> + reg-names:
> + items:
> + - const: dbi
> + - const: dbi2
> + - const: atu
> + - const: dma
> + - const: app
> + - const: phy
> + - const: config
> + - if:
> + properties:
> + compatible:
> + contains:
> + const: renesas,rcar-gen5-pcie4
> + then:
> + properties:
> + reg:
> + maxItems: 6
[Severity: Medium]
Similarly to the Gen4 conditional above, does this Gen5 block need an
explicit "minItems: 6" constraint to prevent truncated register arrays from
passing validation?
Also, the commit message mentions that the R-Car X5H PCIe4 controller no
longer includes the PHY register range and that the PHY is now referenced
via the "phys" DT property. Since the driver requires this external PHY to
be present, should "phys" be added to a "required" list within this Gen5
conditional block so that incomplete device tree nodes fail validation?
> +
> + reg-names:
> + items:
> + - const: dbi
> + - const: dbi2
> + - const: atu
> + - const: dma
> + - const: app
> + - const: config
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260921202823.72620-1-marek.vasut+renesas@mailbox.org?part=1
next prev parent reply other threads:[~2026-09-21 20:39 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-21 20:27 [PATCH v5 0/6] PCI: dwc: rcar-gen4: Add support for R-Car X5H PCIe4 Marek Vasut
2026-09-21 20:27 ` [PATCH v5 1/6] dt-bindings: PCI: rcar-gen4-pci-host: Add R-Car X5H PCIe4 compatible Marek Vasut
2026-09-21 20:39 ` sashiko-bot [this message]
2026-09-21 20:27 ` [PATCH v5 2/6] PCI: dwc: rcar-gen4: Rework rcar_gen4_pcie_drvdata .additional_common_init into .init Marek Vasut
2026-09-21 20:33 ` sashiko-bot
2026-09-21 20:27 ` [PATCH v5 3/6] PCI: dwc: rcar-gen4: Add .deinit callback Marek Vasut
2026-09-21 20:34 ` sashiko-bot
2026-09-21 20:27 ` [PATCH v5 4/6] PCI: dwc: rcar-gen4: Split .start_link into ltssm_control and speed_control Marek Vasut
2026-09-21 20:33 ` sashiko-bot
2026-09-21 20:27 ` [PATCH v5 5/6] PCI: dwc: rcar-gen4: Handle PERST via reset subsystem Marek Vasut
2026-09-21 20:36 ` sashiko-bot
2026-09-21 20:27 ` [PATCH v5 6/6] PCI: dwc: rcar-gen4: Add support for R-Car X5H PCIe4 Marek Vasut
2026-09-21 20:39 ` sashiko-bot
2026-09-28 21:01 ` Bjorn Helgaas
2026-09-28 21:32 ` Marek Vasut
2026-09-28 22:24 ` Bjorn Helgaas
2026-09-29 0:42 ` Marek Vasut
2026-09-22 14:21 ` [PATCH v5 0/6] " Manivannan Sadhasivam
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=20260921203942.CF7E51F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=marek.vasut+renesas@mailbox.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=wsa+renesas@sang-engineering.com \
/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