Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 159670
b: refs/heads/master
c: 1972073
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Aug 14, 2009
1 parent 8a6ae77 commit 9129da3
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 0da6d7b331f391d3c0ce52fb5289f7edeb94e280
refs/heads/master: 19720737187aaee006afb20e63be5e9eddc505a8
4 changes: 4 additions & 0 deletions trunk/drivers/net/sky2.c
Original file line number Diff line number Diff line change
Expand Up @@ -4643,6 +4643,7 @@ static int sky2_suspend(struct pci_dev *pdev, pm_message_t state)
del_timer_sync(&hw->watchdog_timer);
cancel_work_sync(&hw->restart_work);

rtnl_lock();
for (i = 0; i < hw->ports; i++) {
struct net_device *dev = hw->dev[i];
struct sky2_port *sky2 = netdev_priv(dev);
Expand All @@ -4660,6 +4661,7 @@ static int sky2_suspend(struct pci_dev *pdev, pm_message_t state)
sky2_write32(hw, B0_IMSK, 0);
napi_disable(&hw->napi);
sky2_power_aux(hw);
rtnl_unlock();

pci_save_state(pdev);
pci_enable_wake(pdev, pci_choose_state(pdev, state), wol);
Expand Down Expand Up @@ -4729,6 +4731,7 @@ static void sky2_shutdown(struct pci_dev *pdev)
if (!hw)
return;

rtnl_lock();
del_timer_sync(&hw->watchdog_timer);

for (i = 0; i < hw->ports; i++) {
Expand All @@ -4743,6 +4746,7 @@ static void sky2_shutdown(struct pci_dev *pdev)

if (wol)
sky2_power_aux(hw);
rtnl_unlock();

pci_enable_wake(pdev, PCI_D3hot, wol);
pci_enable_wake(pdev, PCI_D3cold, wol);
Expand Down

0 comments on commit 9129da3

Please sign in to comment.