All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Elson Serrao" <elson.serrao@oss.qualcomm.com>
Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, robh@kernel.org
Subject: Re: [PATCH v6 8/9] arm64: dts: qcom: kodiak: Describe EUD UTMI path using child node
Date: Tue, 11 Aug 2026 22:05:04 +0000	[thread overview]
Message-ID: <20260811220505.76DB31F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260811213610.2956147-9-elson.serrao@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] Nesting the OF graph inside `eud-path@0` breaks the existing `qcom_eud` driver's ability to find the USB role switch, and violates the current device tree binding.
--

--- Patch [8]: [PATCH v6 8/9] arm64: dts: qcom: kodiak: Describe EUD UTMI path using child node ---
commit 760fcd42e7f50583cc87820f4812ba19895c4e27
Author: Elson Serrao <elson.serrao@oss.qualcomm.com>

arm64: dts: qcom: kodiak: Update EUD device tree graph

This commit updates the EUD description to explicitly model the topology
using an eud path child node. It also associates the endpoint mapping
with the primary controller and enables the EUD by default.

> diff --git a/arch/arm64/boot/dts/qcom/kodiak.dtsi b/arch/arm64/boot/dts/qcom/kodiak.dtsi
> index f2da3706d5c8..30b62b406906 100644
> --- a/arch/arm64/boot/dts/qcom/kodiak.dtsi
> +++ b/arch/arm64/boot/dts/qcom/kodiak.dtsi

[ ... ]

> @@ -4753,16 +4747,28 @@ eud: eud@88e0000 {
>  			      <0 0x88e2000 0 0x1000>;
>  			interrupts-extended = <&pdc 11 IRQ_TYPE_LEVEL_HIGH>;
>  
> -			status = "disabled";
> +			#address-cells = <1>;
> +			#size-cells = <0>;
>  
> -			ports {
> -				#address-cells = <1>;
> -				#size-cells = <0>;
> +			eud0: eud-path@0 {
> +				reg = <0>;
> +				usb-role-switch;
>  
> -				port@0 {
> -					reg = <0>;
> -					eud_ep: endpoint {
> -						remote-endpoint = <&usb2_role_switch>;
> +				ports {

[Severity: High]
Will this nested structure prevent the qcom_eud driver from finding the
USB role switch?

In drivers/usb/misc/qcom_eud.c:eud_probe(), the driver calls
usb_role_switch_get(), which traverses the OF graph to locate the switch:

    chip->role_sw = usb_role_switch_get(&pdev->dev);
    if (IS_ERR(chip->role_sw))

The graph traversal functions look specifically for immediate child nodes
named "port" or "ports". Because this patch nests the "ports" node inside
an "eud-path@0" child, the traversal will find zero endpoints. This will
cause usb_role_switch_get() to silently return NULL and leave the debugging
functionality non-functional.

Additionally, does this change violate the current device tree bindings for
the EUD?

The schema in Documentation/devicetree/bindings/soc/qcom/qcom,eud.yaml
specifies "additionalProperties: false", which will reject properties like
"eud-path@0", "#address-cells", and "#size-cells" at the root of the eud
node.

> +					#address-cells = <1>;
> +					#size-cells = <0>;
> +
> +					port@0 {
> +						reg = <0>;
> +						eud_usb: endpoint {
> +							remote-endpoint = <&usb_1_dwc3_hs>;
> +						};
> +					};

[ ... ]

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260811213610.2956147-1-elson.serrao@oss.qualcomm.com?part=8

  reply	other threads:[~2026-08-11 22:05 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-11 21:36 [PATCH v6 0/9] Improve Qualcomm EUD driver and platform support Elson Serrao
2026-08-11 21:36 ` [PATCH v6 1/9] dt-bindings: soc: qcom: eud: Add per-path child nodes for UTMI routing Elson Serrao
2026-08-11 21:50   ` sashiko-bot
2026-08-11 21:36 ` [PATCH v6 2/9] usb: misc: qcom_eud: add sysfs attribute for port selection Elson Serrao
2026-08-11 21:54   ` sashiko-bot
2026-08-11 21:36 ` [PATCH v6 3/9] usb: misc: qcom_eud: add per-path High-Speed PHY control Elson Serrao
2026-08-11 21:56   ` sashiko-bot
2026-08-11 21:36 ` [PATCH v6 4/9] usb: misc: qcom_eud: add per-path role switch support Elson Serrao
2026-08-11 21:57   ` sashiko-bot
2026-08-11 21:36 ` [PATCH v6 5/9] usb: misc: qcom_eud: improve enable_store API Elson Serrao
2026-08-11 21:56   ` sashiko-bot
2026-08-11 21:36 ` [PATCH v6 6/9] usb: misc: qcom_eud: add role-based EUD control Elson Serrao
2026-08-11 21:54   ` sashiko-bot
2026-08-11 21:36 ` [PATCH v6 7/9] usb: misc: qcom_eud: fix virtual attach/detach event handling Elson Serrao
2026-08-11 22:00   ` sashiko-bot
2026-08-11 21:36 ` [PATCH v6 8/9] arm64: dts: qcom: kodiak: Describe EUD UTMI path using child node Elson Serrao
2026-08-11 22:05   ` sashiko-bot [this message]
2026-08-11 21:36 ` [PATCH v6 9/9] arm64: dts: qcom: Map USB connector to EUD on Kodiak boards Elson Serrao
2026-08-11 22:06   ` sashiko-bot

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=20260811220505.76DB31F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=elson.serrao@oss.qualcomm.com \
    --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.