Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40785
b: refs/heads/master
c: edd106f
h: refs/heads/master
i:
  40783: 5c113f2
v: v3
  • Loading branch information
Auke Kok authored and Jeff Garzik committed Nov 7, 2006
1 parent 2793b7c commit b4d3975
Show file tree
Hide file tree
Showing 2 changed files with 8 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: e78181feb0b94fb6afeaef3b28d4f5df1b847c98
refs/heads/master: edd106fc8ac1826dbe231b70ce0762db24133e5c
7 changes: 7 additions & 0 deletions trunk/drivers/net/e1000/e1000_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4800,6 +4800,9 @@ e1000_suspend(struct pci_dev *pdev, pm_message_t state)
if (adapter->hw.phy_type == e1000_phy_igp_3)
e1000_phy_powerdown_workaround(&adapter->hw);

if (netif_running(netdev))
e1000_free_irq(adapter);

/* Release control of h/w to f/w. If f/w is AMT enabled, this
* would have already happened in close and is redundant. */
e1000_release_hw_control(adapter);
Expand Down Expand Up @@ -4830,6 +4833,10 @@ e1000_resume(struct pci_dev *pdev)
pci_enable_wake(pdev, PCI_D3hot, 0);
pci_enable_wake(pdev, PCI_D3cold, 0);

if (netif_running(netdev) && (err = e1000_request_irq(adapter)))
return err;

e1000_power_up_phy(adapter);
e1000_reset(adapter);
E1000_WRITE_REG(&adapter->hw, WUS, ~0);

Expand Down

0 comments on commit b4d3975

Please sign in to comment.