Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 22355
b: refs/heads/master
c: c4b1580
h: refs/heads/master
i:
  22353: 06a6470
  22351: 03fa3f9
v: v3
  • Loading branch information
Stephen Hemminger authored and Jeff Garzik committed Mar 21, 2006
1 parent fb43180 commit f28d1f5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 38 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 290d4de5b71f60bb5853a7ef9f0e8c817cd26892
refs/heads/master: c4b1580e8ad1aab13e0d8b97c7af3eebab8791ae
36 changes: 0 additions & 36 deletions trunk/drivers/net/sky2.c
Original file line number Diff line number Diff line change
Expand Up @@ -2777,38 +2777,6 @@ static int sky2_set_pauseparam(struct net_device *dev,
return err;
}

#ifdef CONFIG_PM
static void sky2_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol)
{
struct sky2_port *sky2 = netdev_priv(dev);

wol->supported = WAKE_MAGIC;
wol->wolopts = sky2->wol ? WAKE_MAGIC : 0;
}

static int sky2_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol)
{
struct sky2_port *sky2 = netdev_priv(dev);
struct sky2_hw *hw = sky2->hw;

if (wol->wolopts != WAKE_MAGIC && wol->wolopts != 0)
return -EOPNOTSUPP;

sky2->wol = wol->wolopts == WAKE_MAGIC;

if (sky2->wol) {
memcpy_toio(hw->regs + WOL_MAC_ADDR, dev->dev_addr, ETH_ALEN);

sky2_write16(hw, WOL_CTRL_STAT,
WOL_CTL_ENA_PME_ON_MAGIC_PKT |
WOL_CTL_ENA_MAGIC_PKT_UNIT);
} else
sky2_write16(hw, WOL_CTRL_STAT, WOL_CTL_DEFAULT);

return 0;
}
#endif

static int sky2_get_coalesce(struct net_device *dev,
struct ethtool_coalesce *ecmd)
{
Expand Down Expand Up @@ -2996,10 +2964,6 @@ static struct ethtool_ops sky2_ethtool_ops = {
.set_ringparam = sky2_set_ringparam,
.get_pauseparam = sky2_get_pauseparam,
.set_pauseparam = sky2_set_pauseparam,
#ifdef CONFIG_PM
.get_wol = sky2_get_wol,
.set_wol = sky2_set_wol,
#endif
.phys_id = sky2_phys_id,
.get_stats_count = sky2_get_stats_count,
.get_ethtool_stats = sky2_get_ethtool_stats,
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/net/sky2.h
Original file line number Diff line number Diff line change
Expand Up @@ -1863,7 +1863,6 @@ struct sky2_port {
u8 rx_pause;
u8 tx_pause;
u8 rx_csum;
u8 wol;

struct net_device_stats net_stats;

Expand Down

0 comments on commit f28d1f5

Please sign in to comment.