All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Adrian Ng Ho Yin" <adrian.ho.yin.ng@altera.com>
Cc: linux-clk@vger.kernel.org, conor+dt@kernel.org,
	devicetree@vger.kernel.org, robh@kernel.org
Subject: Re: [PATCH v3 4/6] arm64: dts: intel: agilex5: add USB3.1 controller node
Date: Wed, 12 Aug 2026 07:53:44 +0000	[thread overview]
Message-ID: <20260812075345.41CD01F000E9@smtp.kernel.org> (raw)
In-Reply-To: <628275930f99fb6cdc3edb7269ac75cd04f870dd.1786518803.git.adrian.ho.yin.ng@altera.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] Devicetree structurally contradicts itself regarding 40-bit DMA support for the USB3.1 controller.
--

--- Patch [4]: [PATCH v3 4/6] arm64: dts: intel: agilex5: add USB3.1 controller node ---
commit 2f2039b2059cdc372b94f8f6d45151844510ff80
Author: Adrian Ng Ho Yin <adrian.ho.yin.ng@altera.com>

arm64: dts: intel: agilex5: add USB3.1 controller node

This patch adds a DTS node for the Synopsys DWC3 USB3.1 controller on the
Agilex5 SoC. It places the device under a simple-bus configured with a 40-bit
DMA window and enables it in host mode on the SoCDK board.

> diff --git a/arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi b/arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi
> index b06c6d5d60eed..043b980832c23 100644
> --- a/arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi
> +++ b/arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi
> @@ -494,6 +494,33 @@ usb0: usb@10b00000 {
>  			status = "disabled";
>  		};
>  
> +		usb31_bus: usb-bus@11000000 {
> +			compatible = "simple-bus";
> +			#address-cells = <1>;
> +			#size-cells = <2>;
> +			ranges = <0x00 0x11000000 0x00 0x100000>;
> +			dma-ranges = <0x00 0x00 0x100 0x00>;

[Severity: High]
Does this dma-ranges property structurally contradict the #address-cells
configuration for a 40-bit DMA window?

The usb31_bus node and its parent soc@0 both use #address-cells = <1>.
With a 32-bit (4 GB) child address space, is it mathematically possible to
accommodate the 1 TB (<0x100 0x00>) window length specified in dma-ranges?

When the Linux OF core parses this, won't it truncate the window against the
parent's 32-bit boundaries and silently limit the device to 32-bit DMA?

[ ... ]

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/cover.1786518803.git.adrian.ho.yin.ng@altera.com?part=4

  reply	other threads:[~2026-08-12  7:53 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-12  7:32 [PATCH v3 0/6] Add USB3.1 support for Agilex5 Adrian Ng Ho Yin
2026-08-12  7:32 ` [PATCH v3 1/6] dt-bindings: clock: agilex5: Add USB3.1 reference clock ID Adrian Ng Ho Yin
2026-08-12 11:26   ` Krzysztof Kozlowski
2026-08-12  7:32 ` [PATCH v3 2/6] clk: socfpga: agilex5: add usb3.1 reference clock Adrian Ng Ho Yin
2026-08-12  7:49   ` sashiko-bot
2026-08-12  7:32 ` [PATCH v3 3/6] dt-bindings: usb: add Altera Agilex5 DWC3 controller Adrian Ng Ho Yin
2026-08-12  7:55   ` sashiko-bot
2026-08-12 11:32   ` Krzysztof Kozlowski
2026-08-12  7:32 ` [PATCH v3 4/6] arm64: dts: intel: agilex5: add USB3.1 controller node Adrian Ng Ho Yin
2026-08-12  7:53   ` sashiko-bot [this message]
2026-08-12  7:32 ` [PATCH v3 5/6] arm64: dts: intel: agilex5: remove usb0 in Agilex5 SoCDK Adrian Ng Ho Yin
2026-08-12  7:32 ` [PATCH v3 6/6] usb: dwc3: add Altera Agilex5 support to generic platform driver Adrian Ng Ho Yin
2026-08-12 11:27 ` [PATCH v3 0/6] Add USB3.1 support for Agilex5 Krzysztof Kozlowski

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=20260812075345.41CD01F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=adrian.ho.yin.ng@altera.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-clk@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.