On Mon, Feb 21, 2022 at 01:45:57PM +0200, Baruch Siach wrote: > From: Baruch Siach <baruch.siach@xxxxxxxxx> > > Experimentation shows that PHY detect might fail when the code attempts > MDIO bus read immediately after clock enable. Add delay to stabilize the > clock before bus access. > > PHY detect failure started to show after commit 7590fc6f80ac ("net: > mdio: Demote probed message to debug print") that removed coincidental > delay between clock enable and bus access. > > 10ms is meant to match the time it take to send the probed message over > UART at 115200 bps. This might be a far overshoot. > > Fixes: 23a890d493e3 ("net: mdio: Add the reset function for IPQ MDIO driver") > Signed-off-by: Baruch Siach <baruch.siach@xxxxxxxxx> Reviewed-by: Andrew Lunn <andrew@xxxxxxx> Andrew