Commit d993b31a authored by Andrew Morton's avatar Andrew Morton Committed by Jeff Garzik

[PATCH] E1000 stop working after resume

Obviously pci_enable_device should be called after pci_restore_state.
Signed-off-by: default avatarLi Shaohua <shaohua.li@intel.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
parent 70714ee9
...@@ -2885,9 +2885,11 @@ e1000_resume(struct pci_dev *pdev) ...@@ -2885,9 +2885,11 @@ e1000_resume(struct pci_dev *pdev)
struct e1000_adapter *adapter = netdev->priv; struct e1000_adapter *adapter = netdev->priv;
uint32_t manc, ret; uint32_t manc, ret;
ret = pci_enable_device(pdev);
pci_set_power_state(pdev, 0); pci_set_power_state(pdev, 0);
pci_restore_state(pdev); pci_restore_state(pdev);
ret = pci_enable_device(pdev);
if (pdev->is_busmaster)
pci_set_master(pdev);
pci_enable_wake(pdev, 3, 0); pci_enable_wake(pdev, 3, 0);
pci_enable_wake(pdev, 4, 0); /* 4 == D3 cold */ pci_enable_wake(pdev, 4, 0); /* 4 == D3 cold */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment