From: Manivannan Sadhasivam <mani@kernel.org>
To: Vinicius Pedrosa <vinicius.eduardo.pedrosa@gmail.com>
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>,
Chen-Yu Tsai <wens@kernel.org>,
Jernej Skrabec <jernej.skrabec@gmail.com>,
Samuel Holland <samuel@sholland.org>,
Andre Przywara <andre.przywara@arm.com>,
Xu Rao <raoxu@uniontech.com>,
linux-phy@lists.infradead.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 2/2] phy: sun4i-usb: clear SIDDQ before the PHY reset on A733
Date: Fri, 27 Nov 2026 19:35:01 +0530 [thread overview]
Message-ID: <179578830124.13164.6448969213727096361.b4-reply@b4> (raw)
In-Reply-To: <20261116105544.669029-3-vinicius.eduardo.pedrosa@gmail.com>
On 2026-11-16 07:55 -0300, Vinicius Pedrosa wrote:
> sun4i_usb_phy_init() deasserts the PHY reset first and clears SIDDQ in
> the PMU HCI_PHY_CTL register afterwards. The order comes from the H3
> support and the reason for it isn't documented.
>
> On a Cubie A7Z (A733), the Wi-Fi module on USB1 sometimes came up
> at full speed on the OHCI companion and failed enumeration with -62.
> This happened in 3 of 40 warm boots with a separate local PHY tuning
> change applied.
>
> With that tuning disabled, the current order failed once in 31 warm
> boots. Clearing SIDDQ before releasing reset had no failures in 60
> warm boots in the same interleaved run, or in 10 cold boots.
> Why the order matters is not understood.
>
> The vendor BSP clears SIDDQ while the PHY is still in reset, in its
> common host path.
>
> Add a config flag for the early clear and set it only for the A733,
> whose config is otherwise the D1 one. The other SoCs keep the current
> order: the manuals don't specify one and they weren't tested.
>
> Signed-off-by: Vinicius Pedrosa <vinicius.eduardo.pedrosa@gmail.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
- Mani
next prev parent reply other threads:[~2026-11-27 14:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-16 10:55 [PATCH v2 0/2] phy: sun4i-usb: add the Allwinner A733 USB PHY Vinicius Pedrosa
2026-11-16 10:55 ` [PATCH v2 1/2] dt-bindings: phy: document Allwinner A733 USB-2.0 PHY Vinicius Pedrosa
2026-11-23 11:13 ` Krzysztof Kozlowski
2026-11-16 10:55 ` [PATCH v2 2/2] phy: sun4i-usb: clear SIDDQ before the PHY reset on A733 Vinicius Pedrosa
2026-11-27 14:05 ` Manivannan Sadhasivam [this message]
2026-11-30 23:22 ` 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=179578830124.13164.6448969213727096361.b4-reply@b4 \
--to=mani@kernel.org \
--cc=andre.przywara@arm.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jernej.skrabec@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=neil.armstrong@linaro.org \
--cc=raoxu@uniontech.com \
--cc=robh@kernel.org \
--cc=samuel@sholland.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
all inboxes | Powered by JetHome®