mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Vinicius Pedrosa <vinicius.eduardo.pedrosa@gmail.com>
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>,
	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: Mon, 30 Nov 2026 08:25:37 -0300	[thread overview]
Message-ID: <20261130112538.48119-1-vinicius.eduardo.pedrosa@gmail.com> (raw)
In-Reply-To: <20261130011623.3475209-5-alastair@d-silva.org>

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

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

Thread overview: 12+ 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 [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=20261130112538.48119-1-vinicius.eduardo.pedrosa@gmail.com \
    --to=vinicius.eduardo.pedrosa@gmail.com \
    --cc=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=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®