On Sunday, 17 of August 2008, Rafael J. Wysocki wrote:
This is wrong.
Ah, sorry. I see it does.
Actually, I think you can use pci_prepare_to_sleep() instead of
pci_enable_wake() / pci_set_power_state() combo. It wasn't designed for this
purpose, but should work nevertheless.
Can you please check if the appended patch works instead of your one?
Rafael
---
Fix the problem that boxes with NVidia MCP55 don't work with MSI
in a kexeced kernel.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
---
drivers/net/forcedeth.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
Index: linux-2.6/drivers/net/forcedeth.c
===================================================================
--- linux-2.6.orig/drivers/net/forcedeth.c
+++ linux-2.6/drivers/net/forcedeth.c
@@ -5975,10 +5975,8 @@ static void nv_shutdown(struct pci_dev *
if (netif_running(dev))
nv_close(dev);
- pci_enable_wake(pdev, PCI_D3hot, np->wolenabled);
- pci_enable_wake(pdev, PCI_D3cold, np->wolenabled);
pci_disable_device(pdev);
- pci_set_power_state(pdev, PCI_D3hot);
+ pci_prepare_to_sleep(pdev);
}
#else
#define nv_suspend NULL
--