netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] 3c59x: Use device_set_wakeup_enable
@ 2009-01-09 13:53 Steffen Klassert
  2009-01-10  7:09 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Steffen Klassert @ 2009-01-09 13:53 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: netdev, gwilford, degnbol

Since dev->power.should_wakeup bit is used by the PCI core to
decide whether the device should wake up the system from sleep
states, set this bit by calling device_set_wakeup_enable().

This restores proper WOL for the 3c59x driver.

Reported-and-tested-by: Graeme Wilford <gwilford@gmail.com>
Reported-by: Gunnar Degnbol <degnbol@danbbs.dk>
Signed-off-by: Steffen Klassert <klassert@mathematik.tu-chemnitz.de>
---
 drivers/net/3c59x.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/net/3c59x.c b/drivers/net/3c59x.c
index 665e7fd..cdbbb62 100644
--- a/drivers/net/3c59x.c
+++ b/drivers/net/3c59x.c
@@ -3109,6 +3109,8 @@ static void acpi_set_WOL(struct net_device *dev)
 	struct vortex_private *vp = netdev_priv(dev);
 	void __iomem *ioaddr = vp->ioaddr;
 
+	device_set_wakeup_enable(vp->gendev, vp->enable_wol);
+
 	if (vp->enable_wol) {
 		/* Power up on: 1==Downloaded Filter, 2==Magic Packets, 4==Link Status. */
 		EL3WINDOW(7);
-- 
1.5.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] 3c59x: Use device_set_wakeup_enable
  2009-01-09 13:53 [PATCH] 3c59x: Use device_set_wakeup_enable Steffen Klassert
@ 2009-01-10  7:09 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2009-01-10  7:09 UTC (permalink / raw)
  To: klassert; +Cc: jgarzik, netdev, gwilford, degnbol

From: Steffen Klassert <klassert@mathematik.tu-chemnitz.de>
Date: Fri, 9 Jan 2009 14:53:17 +0100

> Since dev->power.should_wakeup bit is used by the PCI core to
> decide whether the device should wake up the system from sleep
> states, set this bit by calling device_set_wakeup_enable().
> 
> This restores proper WOL for the 3c59x driver.
> 
> Reported-and-tested-by: Graeme Wilford <gwilford@gmail.com>
> Reported-by: Gunnar Degnbol <degnbol@danbbs.dk>
> Signed-off-by: Steffen Klassert <klassert@mathematik.tu-chemnitz.de>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-01-10  7:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-09 13:53 [PATCH] 3c59x: Use device_set_wakeup_enable Steffen Klassert
2009-01-10  7:09 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).