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/ich8lan.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/ich8lan.c')
-rw-r--r-- | drivers/net/e1000e/ich8lan.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/e1000e/ich8lan.c b/drivers/net/e1000e/ich8lan.c index 06ff884bc2c7..3369d1f6a39c 100644 --- a/drivers/net/e1000e/ich8lan.c +++ b/drivers/net/e1000e/ich8lan.c | |||
@@ -564,6 +564,8 @@ static s32 e1000_init_mac_params_ich8lan(struct e1000_adapter *adapter) | |||
564 | mac->ops.check_mng_mode = e1000_check_mng_mode_ich8lan; | 564 | mac->ops.check_mng_mode = e1000_check_mng_mode_ich8lan; |
565 | /* ID LED init */ | 565 | /* ID LED init */ |
566 | mac->ops.id_led_init = e1000e_id_led_init; | 566 | mac->ops.id_led_init = e1000e_id_led_init; |
567 | /* blink LED */ | ||
568 | mac->ops.blink_led = e1000e_blink_led_generic; | ||
567 | /* setup LED */ | 569 | /* setup LED */ |
568 | mac->ops.setup_led = e1000e_setup_led_generic; | 570 | mac->ops.setup_led = e1000e_setup_led_generic; |
569 | /* cleanup LED */ | 571 | /* cleanup LED */ |
@@ -767,6 +769,8 @@ static s32 e1000_get_variants_ich8lan(struct e1000_adapter *adapter) | |||
767 | (!(er32(CTRL_EXT) & E1000_CTRL_EXT_LSECCK)))) { | 769 | (!(er32(CTRL_EXT) & E1000_CTRL_EXT_LSECCK)))) { |
768 | adapter->flags &= ~FLAG_HAS_JUMBO_FRAMES; | 770 | adapter->flags &= ~FLAG_HAS_JUMBO_FRAMES; |
769 | adapter->max_hw_frame_size = ETH_FRAME_LEN + ETH_FCS_LEN; | 771 | adapter->max_hw_frame_size = ETH_FRAME_LEN + ETH_FCS_LEN; |
772 | |||
773 | hw->mac.ops.blink_led = NULL; | ||
770 | } | 774 | } |
771 | 775 | ||
772 | if ((adapter->hw.mac.type == e1000_ich8lan) && | 776 | if ((adapter->hw.mac.type == e1000_ich8lan) && |