WOL bugfix for 3c59x.c
Subsystems (2)
PATCH 3/4 WOL bugfix for 3c59x.c
From: Steffen Klassert <[email protected]>
Some NICs (3c905B) can not generate PME in power state PCI_D0, while others like 3c905C can. Call pci_enable_wake() with PCI_D3hot should give proper WOL for 3c905B.
Signed-off-by Steffen Klassert <[email protected]>
Tested-by Harry Coin <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/net/3c59x.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
drivers/net/3c59x.c renamed from drivers/net/3c59x.c~wol-bugfix-for-3c59xc +7 -1
@@ -3118,7 +3118,13 @@ static void acpi_set_WOL(struct net_deviiowrite16 (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);
_
Jeff Garzik
AppliedQuoted 6 lines · [email protected] wrote:
From: Steffen Klassert <[email protected]>
Some NICs (3c905B) can not generate PME in power state
PCI_D0, while others like 3c905C can. Callpci_enable_wake()withPCI_D3hotshould give proper WOL for 3c905B.
Quoted 7 lines
Signed-off-by Steffen Klassert <[email protected]>Tested-by Harry Coin <[email protected]>Signed-off-by Andrew Morton <[email protected]>---
drivers/net/3c59x.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
applied