mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alastair D'Silva <alastair@d-silva.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>,
	Greg Kroah-Hartman	 <gregkh@linuxfoundation.org>,
	Alan Stern <stern@rowland.harvard.edu>,
	 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>,
	Daniel Golle <daniel@makrotopia.org>,
	Enzo Adriano	 <enzo.adriano.code@gmail.com>,
	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-kernel@vger.kernel.org
Subject: Re: [PATCH v2 4/9] phy: allwinner: sun4i-usb: Add Allwinner A733 support
Date: Tue, 01 Dec 2026 09:19:48 +1100	[thread overview]
Message-ID: <8ce9de46ee10587971e73c285c0e90e95ce74e92.camel@d-silva.org> (raw)
In-Reply-To: <20261130112538.48119-1-vinicius.eduardo.pedrosa@gmail.com>

On Mon, 2026-11-30 at 08:25 -0300, Vinicius Pedrosa wrote:
> Hi Alastair,
> 
> On Mon, 30 Nov 2026 12:16:18 +1100, Alastair D'Silva <alastair@d-silva.org> wrote:
> > Enable the PHY register bus clock (bus) during PHY init, and keep PHY0 out
> > of reset and SIDDQ while any PHY is active.
> 
> This overlaps with my A733 USB PHY v2 [1], which adds the same
> compatible and of_match entry.
> 
> My patch clears SIDDQ in HCI_PHY_CTL before deasserting the PHY reset.
> Your PHY0 reset and SIDDQ handling might be complementary, but 4/9
> doesn't include that early clear.
> 
> On my Cubie A7Z, the current order had USB1 enumeration failures in 3/40
> warm boots with a separate local PHY tuning change, and 1/31 without
> it. The early clear had no failures in 60 warm and 10 cold boots.
> I haven't established why the order matters, and the comparison
> within the interleaved run wasn't conclusive.
> 
> My driver patch has Manivannan's Reviewed-by, and the binding has
> Krzysztof's Acked-by.
> 
> Would it make sense to base your changes on my v2 and keep both the
> early SIDDQ clear and your PHY0 handling? I can test the combined
> code on my A7Z.
> 
> [1] https://lore.kernel.org/r/20261116105544.669029-1-vinicius.eduardo.pedrosa@gmail.com
> 
> Thanks,
> Vinicius

Hi Vinicius,

I re-tested on the OrangePi 4 Pro and confirmed USB1 works with
`RST_USB_PHY0` asserted (`0x02003300 = 0x0`) and PHY0 `SIDDQ` set
(`0x04100410 = 0x00034818`). My earlier `needs_phy0_siddq` workaround is
not needed.

I will drop patch 4/9 and base v3 directly on your v2 series.

-- 
Alastair D'Silva

  reply	other threads:[~2026-11-30 22:19 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30  1:16 [PATCH v2 0/9] Add Allwinner A733 USB 2.0 host support Alastair D'Silva
2026-11-30  1:16 ` [PATCH v2 1/9] dt-bindings: phy: allwinner,sun50i-a64-usb-phy: Add Allwinner A733 Alastair D'Silva
2026-11-30 11:24   ` Vinicius Pedrosa
2026-11-30  1:16 ` [PATCH v2 2/9] dt-bindings: usb: generic-{ehci,ohci}: " Alastair D'Silva
2026-11-30  1:16 ` [PATCH v2 3/9] usb: ehci-platform: Increase EHCI_MAX_CLKS to 5 Alastair D'Silva
2026-11-30  1:16 ` [PATCH v2 4/9] phy: allwinner: sun4i-usb: Add Allwinner A733 support Alastair D'Silva
2026-11-30 11:25   ` Vinicius Pedrosa
2026-11-30 22:19     ` Alastair D'Silva [this message]
2026-11-30  1:16 ` [PATCH v2 5/9] arm64: dts: allwinner: sun60i-a733: Add USB 2.0 host nodes Alastair D'Silva
2026-11-30  1:16 ` [PATCH v2 6/9] arm64: dts: allwinner: sun60i-a733-orangepi-4-pro: Enable USB 2.0 host Alastair D'Silva
2026-11-30  1:16 ` [PATCH v2 7/9] arm64: dts: allwinner: sun60i-a733-cubie-a7a: " Alastair D'Silva
2026-11-30  1:16 ` [PATCH v2 8/9] arm64: dts: allwinner: sun60i-a733-cubie-a7s: " Alastair D'Silva
2026-11-30  1:16 ` [PATCH v2 9/9] arm64: dts: allwinner: sun60i-a733-cubie-a7z: " 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=8ce9de46ee10587971e73c285c0e90e95ce74e92.camel@d-silva.org \
    --to=alastair@d-silva.org \
    --cc=andre.przywara@arm.com \
    --cc=conor+dt@kernel.org \
    --cc=daniel@makrotopia.org \
    --cc=devicetree@vger.kernel.org \
    --cc=enzo.adriano.code@gmail.com \
    --cc=gregkh@linuxfoundation.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=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=stern@rowland.harvard.edu \
    --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®