Assert PHY reset at the end of phy_probe(), for PHYs bearing the PHY_RST_AFTER_PROBE flag. For FEC-based devices this ensures that PHYs are always in reset or power-down whenever the REF_CLK is turned off. Signed-off-by: Laurent Badel <laurentbadel@xxxxxxxxx> --- drivers/net/phy/phy_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c index 13bae0ce31b8..322f569a1162 100644 --- a/drivers/net/phy/phy_device.c +++ b/drivers/net/phy/phy_device.c @@ -2902,7 +2902,7 @@ static int phy_probe(struct device *dev) out: /* Assert the reset signal */ - if (err) + if (err || phydev->drv->flags & PHY_RST_AFTER_PROBE) phy_device_reset(phydev, 1); mutex_unlock(&phydev->lock); -- 2.17.1 ----------------------------- Eaton Industries Manufacturing GmbH ~ Registered place of business: Route de la Longeraie 7, 1110, Morges, Switzerland -----------------------------