aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/e1000
diff options
context:
space:
mode:
authorJeff Kirsher <jeffrey.t.kirsher@intel.com>2006-01-12 19:50:37 -0500
committerJeff Garzik <jgarzik@pobox.com>2006-01-17 07:40:11 -0500
commitd8c2bd3d3aa49e18ffebb999979b976f04280284 (patch)
treea188305d413f0a54d1708a78c959fc45295cda2d /drivers/net/e1000
parent6b7660cd4df23ee92ddc0ba4b4ec31e3adee7bc9 (diff)
[PATCH] e1000: Fix LED functionality for 82573
Fixed adapter identification issue. Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Signed-off-by: John Ronciak <john.ronciak@intel.com> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/net/e1000')
-rw-r--r--drivers/net/e1000/e1000_ethtool.c22
1 files changed, 15 insertions, 7 deletions
diff --git a/drivers/net/e1000/e1000_ethtool.c b/drivers/net/e1000/e1000_ethtool.c
index 791110d4bbaa..54ae8805e79f 100644
--- a/drivers/net/e1000/e1000_ethtool.c
+++ b/drivers/net/e1000/e1000_ethtool.c
@@ -1699,13 +1699,21 @@ e1000_phys_id(struct net_device *netdev, uint32_t data)
1699 mod_timer(&adapter->blink_timer, jiffies); 1699 mod_timer(&adapter->blink_timer, jiffies);
1700 msleep_interruptible(data * 1000); 1700 msleep_interruptible(data * 1000);
1701 del_timer_sync(&adapter->blink_timer); 1701 del_timer_sync(&adapter->blink_timer);
1702 } 1702 } else if (adapter->hw.mac_type < e1000_82573) {
1703 else { 1703 E1000_WRITE_REG(&adapter->hw, LEDCTL,
1704 E1000_WRITE_REG(&adapter->hw, LEDCTL, (E1000_LEDCTL_LED2_BLINK_RATE | 1704 (E1000_LEDCTL_LED2_BLINK_RATE |
1705 E1000_LEDCTL_LED1_BLINK | E1000_LEDCTL_LED2_BLINK | 1705 E1000_LEDCTL_LED0_BLINK | E1000_LEDCTL_LED2_BLINK |
1706 (E1000_LEDCTL_MODE_LED_ON << E1000_LEDCTL_LED2_MODE_SHIFT) | 1706 (E1000_LEDCTL_MODE_LED_ON << E1000_LEDCTL_LED2_MODE_SHIFT) |
1707 (E1000_LEDCTL_MODE_LINK_ACTIVITY << E1000_LEDCTL_LED1_MODE_SHIFT) | 1707 (E1000_LEDCTL_MODE_LINK_ACTIVITY << E1000_LEDCTL_LED0_MODE_SHIFT) |
1708 (E1000_LEDCTL_MODE_LED_OFF << E1000_LEDCTL_LED0_MODE_SHIFT))); 1708 (E1000_LEDCTL_MODE_LED_OFF << E1000_LEDCTL_LED1_MODE_SHIFT)));
1709 msleep_interruptible(data * 1000);
1710 } else {
1711 E1000_WRITE_REG(&adapter->hw, LEDCTL,
1712 (E1000_LEDCTL_LED2_BLINK_RATE |
1713 E1000_LEDCTL_LED1_BLINK | E1000_LEDCTL_LED2_BLINK |
1714 (E1000_LEDCTL_MODE_LED_ON << E1000_LEDCTL_LED2_MODE_SHIFT) |
1715 (E1000_LEDCTL_MODE_LINK_ACTIVITY << E1000_LEDCTL_LED1_MODE_SHIFT) |
1716 (E1000_LEDCTL_MODE_LED_OFF << E1000_LEDCTL_LED0_MODE_SHIFT)));
1709 msleep_interruptible(data * 1000); 1717 msleep_interruptible(data * 1000);
1710 } 1718 }
1711 1719