|
@@ -3481,7 +3481,8 @@ static int bcmgenet_suspend(struct device *d)
|
|
|
|
|
|
bcmgenet_netif_stop(dev);
|
|
|
|
|
|
- phy_suspend(priv->phydev);
|
|
|
+ if (!device_may_wakeup(d))
|
|
|
+ phy_suspend(priv->phydev);
|
|
|
|
|
|
netif_device_detach(dev);
|
|
|
|
|
@@ -3578,7 +3579,8 @@ static int bcmgenet_resume(struct device *d)
|
|
|
|
|
|
netif_device_attach(dev);
|
|
|
|
|
|
- phy_resume(priv->phydev);
|
|
|
+ if (!device_may_wakeup(d))
|
|
|
+ phy_resume(priv->phydev);
|
|
|
|
|
|
if (priv->eee.eee_enabled)
|
|
|
bcmgenet_eee_enable_set(dev, true);
|