* [PATCH 2/2] skge: allow WOL except for known broken chips
@ 2007-05-07 18:01 Stephen Hemminger
2007-05-08 5:16 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2007-05-07 18:01 UTC (permalink / raw)
To: Jeff Garzik; +Cc: netdev, stable
Wake On Lan works correctly on Yukon-FE and other variants.
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>a
---
drivers/net/skge.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
--- sky2-2.6.21.orig/drivers/net/skge.c 2007-05-07 10:04:06.000000000 -0700
+++ sky2-2.6.21/drivers/net/skge.c 2007-05-07 10:04:47.000000000 -0700
@@ -135,10 +135,13 @@ static void skge_get_regs(struct net_dev
/* Wake on Lan only supported on Yukon chips with rev 1 or above */
static u32 wol_supported(const struct skge_hw *hw)
{
- if (hw->chip_id == CHIP_ID_YUKON && hw->chip_rev != 0)
- return WAKE_MAGIC | WAKE_PHY;
- else
+ if (hw->chip_id == CHIP_ID_GENESIS)
return 0;
+
+ if (hw->chip_id == CHIP_ID_YUKON && hw->chip_rev == 0)
+ return 0;
+
+ return WAKE_MAGIC | WAKE_PHY;
}
static u32 pci_wake_enabled(struct pci_dev *dev)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-05-08 5:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-07 18:01 [PATCH 2/2] skge: allow WOL except for known broken chips Stephen Hemminger
2007-05-08 5:16 ` Jeff Garzik
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).