Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210572
b: refs/heads/master
c: c4433be
h: refs/heads/master
v: v3
  • Loading branch information
Giuseppe Cavallaro authored and David S. Miller committed Sep 7, 2010
1 parent 9d73423 commit 4b0f56e
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 3fb5a991916091a908d53608a5899240039fb51e
refs/heads/master: c4433be6e19e3680727f3f89c938a22e7b789b43
9 changes: 4 additions & 5 deletions trunk/drivers/net/stmmac/stmmac_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1865,15 +1865,15 @@ static int stmmac_resume(struct platform_device *pdev)
if (!netif_running(dev))
return 0;

spin_lock(&priv->lock);

if (priv->shutdown) {
/* Re-open the interface and re-init the MAC/DMA
and the rings. */
and the rings (i.e. on hibernation stage) */
stmmac_open(dev);
goto out_resume;
return 0;
}

spin_lock(&priv->lock);

/* Power Down bit, into the PM register, is cleared
* automatically as soon as a magic packet or a Wake-up frame
* is received. Anyway, it's better to manually clear
Expand Down Expand Up @@ -1901,7 +1901,6 @@ static int stmmac_resume(struct platform_device *pdev)

netif_start_queue(dev);

out_resume:
spin_unlock(&priv->lock);
return 0;
}
Expand Down

0 comments on commit 4b0f56e

Please sign in to comment.