Re: [PATCH net-next v4] net: phy: aquantia: Poll global status register for provision ID
From: Andrew Lunn
Date: Mon Nov 16 2026 - 08:33:52 EST
On Mon, Nov 16, 2026 at 07:14:50PM +0800, Hongmei Xu wrote:
> According to the AQR113 PHY databook, after firmware reset, a 20ms
> timer needs to be engaged to allow the supplies to settle prior to
> allowing the PHY to boot. The working flow is:
> -After the 20 ms timer has completed, hardware state machines
> designed to guarantee PLL and band-gap stability engage.
> -After the PLLs and band-gap are locked and functioning properly,
> the processor and digital circuitry are released from reset.
> -The PHY image is then loaded through MDIO boot-load and the
> processor boots.
> -After the processor boots, any provisioned register values are
> set, and the PHY enters the provisioned operating state.
>
> Starting subsequent firmware operations before the provision ID is
> valid leads to steady link failures; this has been observed during
> AQR113 PHY bring-up.
>
> Poll VEND1_GLOBAL_RSVD_STAT1 on AQR113/AQR113C until the provision
> ID field is non-zero before returning from aqr_wait_reset_complete().
> A timeout indicates a hardware-level provisioning failure that
> software cannot remediate; the warning is logged to flag the hardware
> problem, but probe is not failed since a timeout does not necessarily
> prevent link establishment.
>
> Co-developed-by: Sagar Cheluvegowda <sagar.cheluvegowda@xxxxxxxxxxxxxxxx>
> Signed-off-by: Sagar Cheluvegowda <sagar.cheluvegowda@xxxxxxxxxxxxxxxx>
> Signed-off-by: Hongmei Xu <hongmei.xu@xxxxxxxxxxxxxxxx>
Reviewed-by: Andrew Lunn <andrew@xxxxxxx>
Andrew