From: Daniel Golle <daniel@makrotopia.org>
To: Alastair D'Silva <alastair@d-silva.org>
Cc: Vinod Koul <vkoul@kernel.org>,
Neil Armstrong <neil.armstrong@linaro.org>,
Manivannan Sadhasivam <mani@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Stephen Boyd <sboyd@kernel.org>, Chen-Yu Tsai <wens@kernel.org>,
Jernej Skrabec <jernej.skrabec@gmail.com>,
Samuel Holland <samuel@sholland.org>,
Maxime Ripard <mripard@kernel.org>,
Andre Przywara <andre.przywara@arm.com>,
Brian Masney <bmasney+clk@redhat.com>,
Jerome Brunet <jbrunet+clk@baylibre.com>,
Junhui Liu <junhui.liu@pigmoral.tech>,
linux-phy@lists.infradead.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-sunxi@lists.linux.dev, linux-usb@vger.kernel.org,
linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org,
Vinicius Pedrosa <vinicius.eduardo.pedrosa@gmail.com>
Subject: Re: [PATCH 3/6] clk: sunxi-ng: a733: Mark mbus-msi-lite2 clock as critical
Date: Sat, 28 Nov 2026 15:00:58 +0000 [thread overview]
Message-ID: <awrsqr_7vfnipcra@makrotopia.org> (raw)
In-Reply-To: <20261127100808.2292229-4-alastair@d-silva.org>
Hi Alastair,
On Fri, Nov 27, 2026 at 09:08:05PM +1100, Alastair D'Silva wrote:
> The mbus-msi-lite2 clock gates the shared MSI-Lite2 DMA fabric used by the
> USB controllers. Without CLK_IS_CRITICAL, clk_disable_unused() gates it off
> and breaks USB 2.0 host DMA transfers.
>
> Mark mbus-msi-lite2 as CLK_IS_CRITICAL, matching mbus-store in this driver.
I ran into the same on the Orange Pi 4 Pro: once the gate is off, the
OHCI frame counter in the HCCA stops and every EHCI transfer times
out, so the on-board hub fails enumeration with -110.
I would rather not make it critical, though, for the same reason as
for MSI-Lite0 in the CCU thread
(<20261125115320.3692954-1-alastair@d-silva.org>): the gate has
consumers, and they are known here. All four EHCI/OHCI controllers
(and the DWC3 of the USB 3 port) sit behind MSI-Lite2, so each of them
can list the gate as a clock, and the clock framework keeps it on
while any of them is in use. A board without USB in use then does not
keep the fabric clocked.
What that takes in this series:
- 5/6: add <&ccu CLK_MBUS_MSI_LITE2> to the clocks of ehci0/ohci0 and
ehci1/ohci1;
- 2/6: the generic-ehci and generic-ohci bindings have to allow one
more clock for the A733: five for EHCI (bus EHCI, bus OHCI, OHCI
module clock, AHB USB SYS and the MSI-Lite2 gate) and four for OHCI;
- ehci-platform: EHCI_MAX_CLKS is 4 today, so it needs to become 5.
With that, and without this patch, all four ports work on the board
here, including the hub, and clk_summary shows mbus-msi-lite2 held by
the host controllers. I can send the binding and ehci-platform parts
for you to fold in, if that helps.
For transparency: an LLM coding assistant helped with the analysis and
with drafting this reply. I personally review every line before
submission and test manually on the hardware.
Cheers,
Daniel
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
next prev parent reply other threads:[~2026-11-28 15:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 10:08 [PATCH 0/6] Add Allwinner A733 USB 2.0 host support Alastair D'Silva
2026-11-27 10:08 ` [PATCH 1/6] dt-bindings: phy: allwinner,sun50i-a64-usb-phy: Add Allwinner A733 Alastair D'Silva
2026-11-27 10:08 ` [PATCH 2/6] dt-bindings: usb: generic-{ehci,ohci}: " Alastair D'Silva
2026-11-27 10:08 ` [PATCH 3/6] clk: sunxi-ng: a733: Mark mbus-msi-lite2 clock as critical Alastair D'Silva
2026-11-28 15:00 ` Daniel Golle [this message]
2026-11-27 10:08 ` [PATCH 4/6] phy: allwinner: sun4i-usb: Add Allwinner A733 support Alastair D'Silva
2026-11-27 10:08 ` [PATCH 5/6] arm64: dts: allwinner: sun60i-a733: Add USB 2.0 host nodes Alastair D'Silva
2026-11-27 10:08 ` [PATCH 6/6] arm64: dts: allwinner: sun60i-a733-orangepi-4-pro: Enable USB 2.0 host Alastair D'Silva
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=awrsqr_7vfnipcra@makrotopia.org \
--to=daniel@makrotopia.org \
--cc=alastair@d-silva.org \
--cc=andre.przywara@arm.com \
--cc=bmasney+clk@redhat.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=jbrunet+clk@baylibre.com \
--cc=jernej.skrabec@gmail.com \
--cc=junhui.liu@pigmoral.tech \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=linux-usb@vger.kernel.org \
--cc=mani@kernel.org \
--cc=mripard@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=robh@kernel.org \
--cc=samuel@sholland.org \
--cc=sboyd@kernel.org \
--cc=vinicius.eduardo.pedrosa@gmail.com \
--cc=vkoul@kernel.org \
--cc=wens@kernel.org \
/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