Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 275735
b: refs/heads/master
c: 102463b
h: refs/heads/master
i:
  275733: e79694f
  275731: e07d784
  275727: 3445801
v: v3
  • Loading branch information
Francesco Virlinzi authored and David S. Miller committed Nov 17, 2011
1 parent bae866d commit 4ee7dde
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 989508ba60da6dce79f8aaee1be6c092fd4c67f8
refs/heads/master: 102463b18d922dd55c29fbfa222e0355ecf3e42f
12 changes: 7 additions & 5 deletions trunk/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2011,12 +2011,13 @@ static int stmmac_suspend(struct device *dev)
if (!ndev || !netif_running(ndev))
return 0;

if (priv->phydev)
phy_stop(priv->phydev);

spin_lock(&priv->lock);

netif_device_detach(ndev);
netif_stop_queue(ndev);
if (priv->phydev)
phy_stop(priv->phydev);

#ifdef CONFIG_STMMAC_TIMER
priv->tm->timer_stop();
Expand Down Expand Up @@ -2074,12 +2075,13 @@ static int stmmac_resume(struct device *dev)
#endif
napi_enable(&priv->napi);

if (priv->phydev)
phy_start(priv->phydev);

netif_start_queue(ndev);

spin_unlock(&priv->lock);

if (priv->phydev)
phy_start(priv->phydev);

return 0;
}

Expand Down

0 comments on commit 4ee7dde

Please sign in to comment.