|
@@ -3118,7 +3118,13 @@ static void acpi_set_WOL(struct net_device *dev)
|
|
|
iowrite16(SetRxFilter|RxStation|RxMulticast|RxBroadcast, ioaddr + EL3_CMD);
|
|
|
iowrite16(RxEnable, ioaddr + EL3_CMD);
|
|
|
|
|
|
- pci_enable_wake(VORTEX_PCI(vp), 0, 1);
|
|
|
+ if (pci_enable_wake(VORTEX_PCI(vp), PCI_D3hot, 1)) {
|
|
|
+ printk(KERN_INFO "%s: WOL not supported.\n",
|
|
|
+ pci_name(VORTEX_PCI(vp)));
|
|
|
+
|
|
|
+ vp->enable_wol = 0;
|
|
|
+ return;
|
|
|
+ }
|
|
|
|
|
|
/* Change the power state to D3; RxEnable doesn't take effect. */
|
|
|
pci_set_power_state(VORTEX_PCI(vp), PCI_D3hot);
|