Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 88074
b: refs/heads/master
c: 063a0b3
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Hemminger authored and Linus Torvalds committed Apr 2, 2008
1 parent 327a486 commit 30e4feb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 49115b7cb1483a14c557666b61fe81d3c23780d6
refs/heads/master: 063a0b38a7e4ade79f00314c473d3c41a2c7eecf
6 changes: 6 additions & 0 deletions trunk/drivers/net/sky2.c
Original file line number Diff line number Diff line change
Expand Up @@ -4329,10 +4329,14 @@ static int sky2_suspend(struct pci_dev *pdev, pm_message_t state)
if (!hw)
return 0;

del_timer_sync(&hw->watchdog_timer);
cancel_work_sync(&hw->restart_work);

for (i = 0; i < hw->ports; i++) {
struct net_device *dev = hw->dev[i];
struct sky2_port *sky2 = netdev_priv(dev);

netif_device_detach(dev);
if (netif_running(dev))
sky2_down(dev);

Expand Down Expand Up @@ -4383,6 +4387,8 @@ static int sky2_resume(struct pci_dev *pdev)

for (i = 0; i < hw->ports; i++) {
struct net_device *dev = hw->dev[i];

netif_device_attach(dev);
if (netif_running(dev)) {
err = sky2_up(dev);
if (err) {
Expand Down

0 comments on commit 30e4feb

Please sign in to comment.