Re: [PATCH v2 4/9] phy: allwinner: sun4i-usb: Add Allwinner A733 support

From: Vinicius Pedrosa

Date: Mon Nov 30 2026 - 06:25:59 EST


Hi Alastair,

On Mon, 30 Nov 2026 12:16:18 +1100, Alastair D'Silva <alastair@xxxxxxxxxxx> 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@xxxxxxxxx

Thanks,
Vinicius