aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@osdl.org>2006-03-20 18:48:16 -0500
committerJeff Garzik <jeff@garzik.org>2006-03-21 16:00:52 -0500
commitc4b1580e8ad1aab13e0d8b97c7af3eebab8791ae (patch)
tree4e5c5043c3369f0aa4efd2de8cb598705fd1339f /drivers
parent290d4de5b71f60bb5853a7ef9f0e8c817cd26892 (diff)
[PATCH] sky2: drop broken wake on lan support
Remove wake on lan support for now. It doesn't work right, and I don't have a machine with working suspend/resume to test or fix it. It will be re-enabled later. Signed-off-by: Stephen Hemminger <shemminger@osdl.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/sky2.c36
-rw-r--r--drivers/net/sky2.h1
2 files changed, 0 insertions, 37 deletions
diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c
index 3086e52032a8..3a6c796eb70e 100644
--- a/drivers/net/sky2.c
+++ b/drivers/net/sky2.c
@@ -2777,38 +2777,6 @@ static int sky2_set_pauseparam(struct net_device *dev,
2777 return err; 2777 return err;
2778} 2778}
2779 2779
2780#ifdef CONFIG_PM
2781static void sky2_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol)
2782{
2783 struct sky2_port *sky2 = netdev_priv(dev);
2784
2785 wol->supported = WAKE_MAGIC;
2786 wol->wolopts = sky2->wol ? WAKE_MAGIC : 0;
2787}
2788
2789static int sky2_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol)
2790{
2791 struct sky2_port *sky2 = netdev_priv(dev);
2792 struct sky2_hw *hw = sky2->hw;
2793
2794 if (wol->wolopts != WAKE_MAGIC && wol->wolopts != 0)
2795 return -EOPNOTSUPP;
2796
2797 sky2->wol = wol->wolopts == WAKE_MAGIC;
2798
2799 if (sky2->wol) {
2800 memcpy_toio(hw->regs + WOL_MAC_ADDR, dev->dev_addr, ETH_ALEN);
2801
2802 sky2_write16(hw, WOL_CTRL_STAT,
2803 WOL_CTL_ENA_PME_ON_MAGIC_PKT |
2804 WOL_CTL_ENA_MAGIC_PKT_UNIT);
2805 } else
2806 sky2_write16(hw, WOL_CTRL_STAT, WOL_CTL_DEFAULT);
2807
2808 return 0;
2809}
2810#endif
2811
2812static int sky2_get_coalesce(struct net_device *dev, 2780static int sky2_get_coalesce(struct net_device *dev,
2813 struct ethtool_coalesce *ecmd) 2781 struct ethtool_coalesce *ecmd)
2814{ 2782{
@@ -2996,10 +2964,6 @@ static struct ethtool_ops sky2_ethtool_ops = {
2996 .set_ringparam = sky2_set_ringparam, 2964 .set_ringparam = sky2_set_ringparam,
2997 .get_pauseparam = sky2_get_pauseparam, 2965 .get_pauseparam = sky2_get_pauseparam,
2998 .set_pauseparam = sky2_set_pauseparam, 2966 .set_pauseparam = sky2_set_pauseparam,
2999#ifdef CONFIG_PM
3000 .get_wol = sky2_get_wol,
3001 .set_wol = sky2_set_wol,
3002#endif
3003 .phys_id = sky2_phys_id, 2967 .phys_id = sky2_phys_id,
3004 .get_stats_count = sky2_get_stats_count, 2968 .get_stats_count = sky2_get_stats_count,
3005 .get_ethtool_stats = sky2_get_ethtool_stats, 2969 .get_ethtool_stats = sky2_get_ethtool_stats,
diff --git a/drivers/net/sky2.h b/drivers/net/sky2.h
index e2bf1d37ed0e..2a23f3ad6d9f 100644
--- a/drivers/net/sky2.h
+++ b/drivers/net/sky2.h
@@ -1863,7 +1863,6 @@ struct sky2_port {
1863 u8 rx_pause; 1863 u8 rx_pause;
1864 u8 tx_pause; 1864 u8 tx_pause;
1865 u8 rx_csum; 1865 u8 rx_csum;
1866 u8 wol;
1867 1866
1868 struct net_device_stats net_stats; 1867 struct net_device_stats net_stats;
1869 1868