aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/broadcom/genet/bcmgenet.c')
-rw-r--r--drivers/net/ethernet/broadcom/genet/bcmgenet.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/ethernet/broadcom/genet/bcmgenet.c b/drivers/net/ethernet/broadcom/genet/bcmgenet.c
index 91627561c58d..f971d92f7b41 100644
--- a/drivers/net/ethernet/broadcom/genet/bcmgenet.c
+++ b/drivers/net/ethernet/broadcom/genet/bcmgenet.c
@@ -3495,7 +3495,8 @@ static int bcmgenet_suspend(struct device *d)
3495 3495
3496 bcmgenet_netif_stop(dev); 3496 bcmgenet_netif_stop(dev);
3497 3497
3498 phy_suspend(priv->phydev); 3498 if (!device_may_wakeup(d))
3499 phy_suspend(priv->phydev);
3499 3500
3500 netif_device_detach(dev); 3501 netif_device_detach(dev);
3501 3502
@@ -3592,7 +3593,8 @@ static int bcmgenet_resume(struct device *d)
3592 3593
3593 netif_device_attach(dev); 3594 netif_device_attach(dev);
3594 3595
3595 phy_resume(priv->phydev); 3596 if (!device_may_wakeup(d))
3597 phy_resume(priv->phydev);
3596 3598
3597 if (priv->eee.eee_enabled) 3599 if (priv->eee.eee_enabled)
3598 bcmgenet_eee_enable_set(dev, true); 3600 bcmgenet_eee_enable_set(dev, true);