mirror of
https://github.com/torvalds/linux.git
synced 2026-04-28 11:32:28 -04:00
ixgbe: Add support to retrieve and store LED link active
This patch adds support to get the LED link active via the LEDCTL register. If the LEDCTL register does not have LED link active (LED mode field = 0x0100) set then default LED link active returned. Signed-off-by: Don Skidmore <donald.c.skidmore@intel.com> Tested-by: Krishneil Singh <krishneil.k.singh@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
committed by
Jeff Kirsher
parent
0c1b7de4f3
commit
805cedd663
@@ -2225,11 +2225,11 @@ static int ixgbe_set_phys_id(struct net_device *netdev,
|
||||
return 2;
|
||||
|
||||
case ETHTOOL_ID_ON:
|
||||
hw->mac.ops.led_on(hw, hw->bus.func);
|
||||
hw->mac.ops.led_on(hw, hw->mac.led_link_act);
|
||||
break;
|
||||
|
||||
case ETHTOOL_ID_OFF:
|
||||
hw->mac.ops.led_off(hw, hw->bus.func);
|
||||
hw->mac.ops.led_off(hw, hw->mac.led_link_act);
|
||||
break;
|
||||
|
||||
case ETHTOOL_ID_INACTIVE:
|
||||
|
||||
Reference in New Issue
Block a user