From: sashiko-bot@kernel.org
To: "Krishna Kurapati" <krishna.kurapati@oss.qualcomm.com>
Cc: conor+dt@kernel.org, robh@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v3 3/4] arm64: dts: qcom: Enable Primary USB controller on Shikra CQM platform
Date: Thu, 16 Jul 2026 16:51:05 +0000 [thread overview]
Message-ID: <20260716165105.F28621F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260716-shikra-usb-dt-v3-v3-3-13f73a0571bb@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] The `usb_2` controller incorrectly assigns `GCC_CFG_NOC_USB2_PRIM_AXI_CLK` to its `iface` clock instead of the correct system NOC clock `GCC_SYS_NOC_USB2_PRIM_AXI_CLK`.
- [Medium] Missing `dr_mode = "peripheral"` property in the `usb_1` node overlay, causing the controller to fail to initialize in device mode.
--
--- Patch [3]: [PATCH v3 3/4] arm64: dts: qcom: Enable Primary USB controller on Shikra CQM platform ---
commit e2592f76c437910744ef5b9caed7e31cf607381b
Author: Krishna Kurapati <krishna.kurapati@oss.qualcomm.com>
arm64: dts: qcom: Enable Primary USB controller on Shikra CQM platform
This commit enables the primary USB controller in device mode on the
Shikra CQM platform. It enables the usb_1, usb_1_hsphy, and usb_qmpphy
nodes with their respective supply regulators.
> diff --git a/arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts b/arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts
> index 0a52ab9b7a4c3..9867160470a8e 100644
> --- a/arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts
> +++ b/arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts
> @@ -38,3 +38,22 @@ &sdhc_1 {
>
> status = "okay";
> };
> +
> +&usb_1 {
> + status = "okay";
> +};
[Severity: Medium]
The commit message mentions enabling the primary USB controller in device
mode, but this node doesn't specify the mode.
Without dr_mode = "peripheral", won't the DWC3 core default to OTG mode
and prevent the Qualcomm specific VBUS override from being enabled, causing
the port to fail to enumerate as a device?
Should dr_mode = "peripheral" be added here to ensure it operates in device
mode as intended?
[ ... ]
The following issue was also found in arch/arm64/boot/dts/qcom/shikra.dtsi:
> clocks = <&gcc GCC_CFG_NOC_USB2_PRIM_AXI_CLK>,
> <&gcc GCC_USB20_MASTER_CLK>,
> <&gcc GCC_CFG_NOC_USB2_PRIM_AXI_CLK>,
[Severity: High]
Does this code incorrectly assign GCC_CFG_NOC_USB2_PRIM_AXI_CLK to the usb_2
iface clock instead of the correct system NOC clock
GCC_SYS_NOC_USB2_PRIM_AXI_CLK?
Supplying the configuration NOC clock instead of the system NOC clock for the
iface clock will result in the SYS_NOC clock not being appropriately enabled
during USB AXI transactions. Can this cause AXI bus hangs or access faults,
which could lead to system panics or freezes?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260716-shikra-usb-dt-v3-v3-0-13f73a0571bb@oss.qualcomm.com?part=3
next prev parent reply other threads:[~2026-07-16 16:51 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-16 16:29 [PATCH v3 0/4] Add DT Support for USB on Shikra Krishna Kurapati
2026-07-16 16:29 ` [PATCH v3 1/4] arm64: dts: qcom: Add support for usb nodes " Krishna Kurapati
2026-07-16 16:46 ` sashiko-bot
2026-07-16 16:29 ` [PATCH v3 2/4] arm64: dts: qcom: Enable Primary USB controller on Shikra CQS platform Krishna Kurapati
2026-07-16 16:41 ` sashiko-bot
2026-07-16 17:38 ` Konrad Dybcio
2026-07-16 16:29 ` [PATCH v3 3/4] arm64: dts: qcom: Enable Primary USB controller on Shikra CQM platform Krishna Kurapati
2026-07-16 16:51 ` sashiko-bot [this message]
2026-07-16 17:38 ` Konrad Dybcio
2026-07-16 16:29 ` [PATCH v3 4/4] arm64: dts: qcom: Enable USB controllers on Shikra IQS platform Krishna Kurapati
2026-07-16 17:40 ` Konrad Dybcio
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=20260716165105.F28621F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krishna.kurapati@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox