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>
This commit is contained in:
committed by
Jeff Kirsher
parent
2bd93d7af1
commit
dbf80dcbd8
@@ -1530,12 +1530,12 @@ s32 e1000e_cleanup_led_generic(struct e1000_hw *hw)
|
||||
}
|
||||
|
||||
/**
|
||||
* e1000e_blink_led - Blink LED
|
||||
* e1000e_blink_led_generic - Blink LED
|
||||
* @hw: pointer to the HW structure
|
||||
*
|
||||
* Blink the LEDs which are set to be on.
|
||||
**/
|
||||
s32 e1000e_blink_led(struct e1000_hw *hw)
|
||||
s32 e1000e_blink_led_generic(struct e1000_hw *hw)
|
||||
{
|
||||
u32 ledctl_blink = 0;
|
||||
u32 i;
|
||||
|
Reference in New Issue
Block a user