On Wed, Aug 26, 2020 at 10:58:57AM +0200, Sascha Hauer wrote: > Hi Andrew, > > Well there is only one phy connected to the bus, so it makes no > difference if I say the reset GPIO is for the whole bus or for a single > phy only. The per bus reset should work, but currently it doesn't. First > reason I found out that mdiobus_register() doesn't handle -EPROBE_DEFER > returned by the devm_gpiod_get_optional() properly, patch follows.
Thanks > Second reason is that the phy is not detected (id read returns 0xffff) > when the reset is attached to the bus. So far I haven't found the reason > for that. Try giving the PHY a bit longer to recover from the reset before probing it. And what SoC are you using? Is it FEC ethernet driver? That has MDIO issues at the moment. Andrew