Re: [PATCH net v3] net: phy: c45-tjaxx: add delay between MDIO write and read in soft_reset

From: Andrew Lunn
Date: Fri Jan 24 2025 - 09:43:22 EST


On Fri, Jan 24, 2025 at 10:41:02AM +0000, Milos Reljin wrote:
> In application note (AN13663) for TJA1120, on page 30, there's a figure
> with average PHY startup timing values following software reset.
> The time it takes for SMI to become operational after software reset
> ranges roughly from 500 us to 1500 us.
>
> This commit adds 2000 us delay after MDIO write which triggers software
> reset. Without this delay, soft_reset function returns an error and
> prevents successful PHY init.
>
> Cc: stable@xxxxxxxxxxxxxxx
> Fixes: b050f2f15e04 ("phy: nxp-c45: add driver for tja1103")
> Signed-off-by: Milos Reljin <milos_reljin@xxxxxxxxxxx>

Reviewed-by: Andrew Lunn <andrew@xxxxxxx>

Andrew