diff options
author | Stephen Hemminger <shemminger@linux-foundation.org> | 2007-05-07 14:01:55 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-05-08 01:15:15 -0400 |
commit | d17ecb23b2e5ca174c0f5ce6be42cb3909a02ed0 (patch) | |
tree | 64b6a955299f7805656a9bcebefc5f464f0fe9a1 /drivers/net/skge.c | |
parent | 5443e9ead4f53fd7a43e6846cf10fdc0c5366a93 (diff) |
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@linux-foundation.org>a
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/skge.c')
-rw-r--r-- | drivers/net/skge.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/net/skge.c b/drivers/net/skge.c index 21afe108d3cb..b07da1054add 100644 --- a/drivers/net/skge.c +++ b/drivers/net/skge.c | |||
@@ -135,10 +135,13 @@ static void skge_get_regs(struct net_device *dev, struct ethtool_regs *regs, | |||
135 | /* Wake on Lan only supported on Yukon chips with rev 1 or above */ | 135 | /* Wake on Lan only supported on Yukon chips with rev 1 or above */ |
136 | static u32 wol_supported(const struct skge_hw *hw) | 136 | static u32 wol_supported(const struct skge_hw *hw) |
137 | { | 137 | { |
138 | if (hw->chip_id == CHIP_ID_YUKON && hw->chip_rev != 0) | 138 | if (hw->chip_id == CHIP_ID_GENESIS) |
139 | return WAKE_MAGIC | WAKE_PHY; | ||
140 | else | ||
141 | return 0; | 139 | return 0; |
140 | |||
141 | if (hw->chip_id == CHIP_ID_YUKON && hw->chip_rev == 0) | ||
142 | return 0; | ||
143 | |||
144 | return WAKE_MAGIC | WAKE_PHY; | ||
142 | } | 145 | } |
143 | 146 | ||
144 | static u32 pci_wake_enabled(struct pci_dev *dev) | 147 | static u32 pci_wake_enabled(struct pci_dev *dev) |