forcedeth: add pci_enable_device() to nv_resume()
Subsystems (2)
PATCH 10/12 forcedeth: add pci_enable_device() to nv_resume()
From: Simon Arlott <[email protected]>
My NIC stops working after resuming from standby, it's not receiving any interrupts.
Commit 25d90810ff49d2a63475776f24c74c6bb49b045f ([netdrvr] forcedeth:
reorder suspend/resume code) introduces pci_disable_device to nv_suspend, but there's no corresponding pci_enable_device in nv_resume - so I added one (copied from e1000). This results in interrupts being re-enabled after suspend.
However, the NIC (10de:0373) still doesn't work after resume.
---
drivers/net/forcedeth.c | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/net/forcedeth.c renamed from drivers/net/forcedeth.c~forcedeth-add-pci_enable_device-to-nv_resume +7 -0
@@ -5960,6 +5960,13 @@ static int nv_resume(struct pci_dev *pdepci_set_power_state (pdev,PCI_D0 );pci_restore_state (pdev); + rc =pci_enable_device (pdev); +if (rc) { +printk (KERN_ERR "forcedeth: Cannot enable PCI device from suspend\n" ); +return rc; + } +pci_set_master (pdev); +/* ack any pending wake events, disable PME */ pci_enable_wake (pdev,PCI_D0 ,0 );
_
Quoted 5 lines · [email protected] wrote:
From: Simon Arlott <[email protected]>
My NIC stops working after resuming from standby, it's not receiving any interrupts.
Quoted 7 lines
Commit
25d90810ff49d2a63475776f24c74c6bb49b045f([netdrvr] forcedeth:
reorder suspend/resume code) introducespci_disable_devicetonv_suspend, but there's no correspondingpci_enable_deviceinnv_resume- so I added one (copied from e1000). This results in interrupts being re-enabled after suspend.However, the NIC (10de:0373) still doesn't work after resume.
So... the NIC doesn't work after resume, even after your patch is applied?
Quoted 12 lines · Jeff Garzik
Quoted 11 lines · [email protected] wrote:
From: Simon Arlott <[email protected]>
My NIC stops working after resuming from standby, it's not receiving any interrupts.
Commit
25d90810ff49d2a63475776f24c74c6bb49b045f([netdrvr] forcedeth:
reorder suspend/resume code) introducespci_disable_devicetonv_suspend, but there's no correspondingpci_enable_deviceinnv_resume- so I added one (copied from e1000). This results in interrupts being re-enabled after suspend.
Quoted 3 lines
Quoted 1 line
However, the NIC (10de:0373) still doesn't work after resume.
So... the NIC doesn't work after resume, even after your patch is applied?
It works after resume with MSI disabled.
Signature · 1 line
Simon Arlott