2 Oct 23:37
[PATCH] sky2: Fix recent WOL regression
From: Rafael J. Wysocki <rjw <at> sisk.pl>
Subject: [PATCH] sky2: Fix recent WOL regression
Newsgroups: gmane.linux.power-management.general
Date: 2008-10-02 21:39:33 GMT
Subject: [PATCH] sky2: Fix recent WOL regression
Newsgroups: gmane.linux.power-management.general
Date: 2008-10-02 21:39:33 GMT
From: Rafael J. Wysocki <rjw <at> sisk.pl> sky2: Fix recent WOL regression 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/unset this bit whenever WOL is enabled/disabled using sky2_set_wol() (this fixes a regression from 2.6.26 on the Tino's machine). Remove an open-coded reference to the standard PCI PM registers that is not used any more. Signed-off-by: Rafael J. Wysocki <rjw <at> sisk.pl> Reported-by: Tino Keitel <tino.keitel <at> gmx.de> --- drivers/net/sky2.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) Index: linux-2.6/drivers/net/sky2.c =================================================================== --- linux-2.6.orig/drivers/net/sky2.c +++ linux-2.6/drivers/net/sky2.c @@ -3034,7 +3034,8 @@ static int sky2_set_wol(struct net_devic struct sky2_port *sky2 = netdev_priv(dev); struct sky2_hw *hw = sky2->hw; - if (wol->wolopts & ~sky2_wol_supported(sky2->hw)) + if ((wol->wolopts & ~sky2_wol_supported(sky2->hw))(Continue reading)
RSS Feed