Commit c305cb59 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by Chris Wright

[PATCH] skge: allow WOL except for known broken chips

Wake On Lan works correctly on Yukon-FE and other variants.
Signed-off-by: default avatarStephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: default avatarChris Wright <chrisw@sous-sol.org>
parent cc7a0c77
...@@ -135,10 +135,13 @@ static void skge_get_regs(struct net_device *dev, struct ethtool_regs *regs, ...@@ -135,10 +135,13 @@ static void skge_get_regs(struct net_device *dev, struct ethtool_regs *regs,
/* Wake on Lan only supported on Yukon chips with rev 1 or above */ /* Wake on Lan only supported on Yukon chips with rev 1 or above */
static u32 wol_supported(const struct skge_hw *hw) static u32 wol_supported(const struct skge_hw *hw)
{ {
if (hw->chip_id == CHIP_ID_YUKON && hw->chip_rev != 0) if (hw->chip_id == CHIP_ID_GENESIS)
return WAKE_MAGIC | WAKE_PHY;
else
return 0; 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) static u32 pci_wake_enabled(struct pci_dev *dev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment