Skip to contentSkip to conversation

skge: allow WOL except for known broken chips

PATCH Applied Stephen Hemminger 2 participants 2 messages May 7, 2007 – May 8, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/2 skge: allow WOL except for known broken chips

Wake On Lan works correctly on Yukon-FE and other variants.

---
 drivers/net/skge.c |    9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
drivers/net/skge.c +6 -3
@@ -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)
Applied
#1 lore raw
Quoted 7 lines · Stephen Hemminger

Wake On Lan works correctly on Yukon-FE and other variants.

---
 drivers/net/skge.c |    9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

applied