[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070507110155.2063c74d@freekitty>
Date: Mon, 7 May 2007 11:01:55 -0700
From: Stephen Hemminger <shemminger@...ux-foundation.org>
To: Jeff Garzik <jgarzik@...ox.com>
Cc: netdev@...r.kernel.org, stable@...nel.org
Subject: [PATCH 2/2] skge: allow WOL except for known broken chips
Wake On Lan works correctly on Yukon-FE and other variants.
Signed-off-by: Stephen Hemminger <shemminger@...ux-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)
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists