All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Antony Kurniawan Soemardi via B4 Relay"
	<devnull+linux.smankusors.com@kernel.org>
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org,
	krzk+dt@kernel.org
Subject: Re: [PATCH v2 05/10] ARM: dts: qcom: msm8960: add RPM clock controller and fix USB clocks
Date: Thu, 14 May 2026 21:01:39 +0000	[thread overview]
Message-ID: <20260514210140.6B9B0C2BCB3@smtp.kernel.org> (raw)
In-Reply-To: <20260514-msm8960-wifi-v2-5-7cbae45dab5e@smankusors.com>

Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
- [High] Mapping `USB_HS1_XCVR_CLK` to the `fs` clock slot causes the USB controller to lose its transceiver clock during normal operation, breaking USB functionality.
- [Medium] Improperly assigning an interconnect fabric clock to the `core` clock slot of the USB controller.
- [Low] The updated USB node violates the `maxItems: 2` restriction for clocks in the `qcom,ci-hdrc` device tree binding schema.
--

commit e540b9f85ba14f0ebee0eabb79c077903050c001
Author: Antony Kurniawan Soemardi <linux@smankusors.com>

ARM: dts: qcom: msm8960: add RPM clock controller and fix USB clocks

This commit adds the RPM clock controller to the MSM8960 device tree and
updates the USB controller to declare a dependency on RPM_DAYTONA_FABRIC_CLK.
It also moves USB_HS1_XCVR_CLK to the fs clock slot.

> diff --git a/arch/arm/boot/dts/qcom/qcom-msm8960.dtsi b/arch/arm/boot/dts/qcom/qcom-msm8960.dtsi
> index fd28401cebb5e..0601680cd8dd1 100644
> --- a/arch/arm/boot/dts/qcom/qcom-msm8960.dtsi
> +++ b/arch/arm/boot/dts/qcom/qcom-msm8960.dtsi
[ ... ]
> @@ -507,8 +519,12 @@ usb1: usb@12500000 {
>  			reg = <0x12500000 0x200>,
>  			      <0x12500200 0x200>;
>  			interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
> -			clocks = <&gcc USB_HS1_XCVR_CLK>, <&gcc USB_HS1_H_CLK>;
> -			clock-names = "core", "iface";
> +			clocks = <&rpmcc RPM_DAYTONA_FABRIC_CLK>,
> +				 <&gcc USB_HS1_H_CLK>,
> +				 <&gcc USB_HS1_XCVR_CLK>;
> +			clock-names = "core",
> +				      "iface",
> +				      "fs";

Does adding a third clock here violate the devicetree binding schema?

The qcom,ci-hdrc binding in Documentation/devicetree/bindings/usb/ci-hdrc-usb2.yaml
restricts both clocks and clock-names to a maximum of 2 items. Applying this
without updating the schema seems to trigger dtbs_check errors.

Does mapping the transceiver clock to the fs slot inadvertently break USB
functionality during normal operation?

In the ChipIdea MSM driver in drivers/usb/chipidea/ci_hdrc_msm.c, the fs clock
is used exclusively to propagate reset signals during probe. Immediately after
the reset sequence, the driver calls clk_disable_unprepare() on it and does not
re-enable it. Since USB_HS1_XCVR_CLK is the required 60MHz ULPI transceiver
clock, turning it off would cause the USB controller to fail entirely.

Also, is it appropriate to assign the interconnect fabric clock to the core
clock slot?

The fabric clock is an interconnect bus clock rather than the operational
core clock for the controller. Usually, bus dependencies are managed through
the interconnect API or by adding dedicated support for bus clocks in the
ci_hdrc_msm driver, rather than taking over the mandatory core clock slot.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260514-msm8960-wifi-v2-0-7cbae45dab5e@smankusors.com?part=5

  reply	other threads:[~2026-05-14 21:01 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-14 14:08 [PATCH v2 00/10] ARM: qcom: msm8960: enable WCNSS (Bluetooth & Wi-Fi) Antony Kurniawan Soemardi via B4 Relay
2026-05-14 14:08 ` Antony Kurniawan Soemardi
2026-05-14 14:08 ` [PATCH v2 01/10] dt-bindings: clock: qcom,rpmcc: add msm8960 compatible Antony Kurniawan Soemardi via B4 Relay
2026-05-14 14:08   ` Antony Kurniawan Soemardi
2026-05-15  6:56   ` Krzysztof Kozlowski
2026-05-14 14:08 ` [PATCH v2 02/10] dt-bindings: mfd: syscon: add qcom,msm8960-sps-sic Antony Kurniawan Soemardi via B4 Relay
2026-05-14 14:08   ` Antony Kurniawan Soemardi
2026-05-14 19:40   ` sashiko-bot
2026-05-15  6:57   ` Krzysztof Kozlowski
2026-05-14 14:08 ` [PATCH v2 03/10] mfd: qcom_rpm: add msm8960 QDSS clock resource Antony Kurniawan Soemardi via B4 Relay
2026-05-14 14:08   ` Antony Kurniawan Soemardi
2026-05-14 14:08 ` [PATCH v2 04/10] clk: qcom: clk-rpm: add msm8960 compatible Antony Kurniawan Soemardi via B4 Relay
2026-05-14 14:08   ` Antony Kurniawan Soemardi
2026-05-14 14:08 ` [PATCH v2 05/10] ARM: dts: qcom: msm8960: add RPM clock controller and fix USB clocks Antony Kurniawan Soemardi via B4 Relay
2026-05-14 14:08   ` Antony Kurniawan Soemardi
2026-05-14 21:01   ` sashiko-bot [this message]
2026-05-14 14:08 ` [PATCH v2 06/10] ARM: dts: qcom: msm8960: add SCM Antony Kurniawan Soemardi via B4 Relay
2026-05-14 14:08   ` Antony Kurniawan Soemardi
2026-05-14 14:08 ` [PATCH v2 07/10] ARM: dts: qcom: msm8960: add SMEM & hwlock Antony Kurniawan Soemardi via B4 Relay
2026-05-14 14:08   ` Antony Kurniawan Soemardi
2026-05-14 14:08 ` [PATCH v2 08/10] ARM: dts: qcom: msm8960: add SMSM & SPS Antony Kurniawan Soemardi via B4 Relay
2026-05-14 14:08   ` Antony Kurniawan Soemardi
2026-05-14 21:41   ` sashiko-bot
2026-05-14 14:08 ` [PATCH v2 09/10] ARM: dts: qcom: msm8960: add Riva Antony Kurniawan Soemardi via B4 Relay
2026-05-14 14:08   ` Antony Kurniawan Soemardi
2026-05-14 14:08 ` [PATCH v2 10/10] ARM: dts: qcom: msm8960: huashan: enable Wi-Fi and Bluetooth Antony Kurniawan Soemardi via B4 Relay
2026-05-14 14:08   ` Antony Kurniawan Soemardi

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=20260514210140.6B9B0C2BCB3@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=devnull+linux.smankusors.com@kernel.org \
    --cc=krzk+dt@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.