diff options
author | Bruce Allan <bruce.w.allan@intel.com> | 2011-04-15 20:34:40 -0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2011-04-27 05:05:53 -0400 |
commit | dbf80dcbd8ca0c50f343401fedd2d6200cb8097e (patch) | |
tree | e6804f597018b03055daca6087f03eaaa6f32a45 /drivers/net/e1000e/netdev.c | |
parent | 2bd93d7af1581d40e3c4b25242472661cb7c637a (diff) |
e1000e: implement ethtool set_phys_id
Based on a patch from Stephen Hemminger <shemminger@vyatta.com>.
The new ethtool set_phys_id takes over controlling the LED for
identifying boards. This fixes the lockout during that period.
For this device lots of extra infrastructure can also be removed by
using set_phys_id.
v2: - return blink frequency for parts that do not support blink in h/w
- add blink_led function pointers for devices that do support blink
in h/w to cleanup the test for this functionality
Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Cc: Stephen Hemminger <shemminger@vyatta.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/e1000e/netdev.c')
-rw-r--r-- | drivers/net/e1000e/netdev.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c index 4deb67d98e36..0939040305fa 100644 --- a/drivers/net/e1000e/netdev.c +++ b/drivers/net/e1000e/netdev.c | |||
@@ -6020,7 +6020,6 @@ static int __devinit e1000_probe(struct pci_dev *pdev, | |||
6020 | INIT_WORK(&adapter->downshift_task, e1000e_downshift_workaround); | 6020 | INIT_WORK(&adapter->downshift_task, e1000e_downshift_workaround); |
6021 | INIT_WORK(&adapter->update_phy_task, e1000e_update_phy_task); | 6021 | INIT_WORK(&adapter->update_phy_task, e1000e_update_phy_task); |
6022 | INIT_WORK(&adapter->print_hang_task, e1000_print_hw_hang); | 6022 | INIT_WORK(&adapter->print_hang_task, e1000_print_hw_hang); |
6023 | INIT_WORK(&adapter->led_blink_task, e1000e_led_blink_task); | ||
6024 | 6023 | ||
6025 | /* Initialize link parameters. User can change them with ethtool */ | 6024 | /* Initialize link parameters. User can change them with ethtool */ |
6026 | adapter->hw.mac.autoneg = 1; | 6025 | adapter->hw.mac.autoneg = 1; |
@@ -6153,7 +6152,6 @@ static void __devexit e1000_remove(struct pci_dev *pdev) | |||
6153 | cancel_work_sync(&adapter->watchdog_task); | 6152 | cancel_work_sync(&adapter->watchdog_task); |
6154 | cancel_work_sync(&adapter->downshift_task); | 6153 | cancel_work_sync(&adapter->downshift_task); |
6155 | cancel_work_sync(&adapter->update_phy_task); | 6154 | cancel_work_sync(&adapter->update_phy_task); |
6156 | cancel_work_sync(&adapter->led_blink_task); | ||
6157 | cancel_work_sync(&adapter->print_hang_task); | 6155 | cancel_work_sync(&adapter->print_hang_task); |
6158 | 6156 | ||
6159 | if (!(netdev->flags & IFF_UP)) | 6157 | if (!(netdev->flags & IFF_UP)) |