|
@@ -308,7 +308,7 @@ static int mdio_bus_suspend(struct device *dev)
|
|
|
* may call phy routines that try to grab the same lock, and that may
|
|
|
* lead to a deadlock.
|
|
|
*/
|
|
|
- if (phydev->attached_dev)
|
|
|
+ if (phydev->attached_dev && phydev->adjust_link)
|
|
|
phy_stop_machine(phydev);
|
|
|
|
|
|
if (!mdio_bus_phy_may_suspend(phydev))
|
|
@@ -331,7 +331,7 @@ static int mdio_bus_resume(struct device *dev)
|
|
|
return ret;
|
|
|
|
|
|
no_resume:
|
|
|
- if (phydev->attached_dev)
|
|
|
+ if (phydev->attached_dev && phydev->adjust_link)
|
|
|
phy_start_machine(phydev, NULL);
|
|
|
|
|
|
return 0;
|