Message ID | 4B544D2C.8040400@ring3k.org |
---|---|
State | RFC, archived |
Delegated to: | David Miller |
Headers | show |
On Mon, Jan 18, 2010 at 20:59:40 +0900, Mike McCormack wrote: > Tino Keitel wrote: > > Hi, > > > > reverting this commit fixes WoL for me: > > > > commit 166a0fd4c788ec7f10ca8194ec6d526afa12db75 > > Hi Tino, > > Does this fix WoL also? Compile tested only... No, still no wakeup on WoL packets. Regards, Tino -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c index 4c06020..b54edec 100644 --- a/drivers/net/sky2.c +++ b/drivers/net/sky2.c @@ -4789,6 +4789,9 @@ static int sky2_suspend(struct pci_dev *pdev, pm_message_t state) sky2_power_aux(hw); rtnl_unlock(); + /* disable writes to PCI config again */ + sky2_write8(hw, B2_TST_CTRL1, TST_CFG_WRITE_OFF); + pci_save_state(pdev); pci_enable_wake(pdev, pci_choose_state(pdev, state), wol); pci_set_power_state(pdev, pci_choose_state(pdev, state));