aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igb/e1000_mac.c
diff options
context:
space:
mode:
authorAkeem G. Abodunrin <akeem.g.abodunrin@intel.com>2013-05-01 01:44:45 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2013-05-21 06:01:58 -0400
commit6f8b916065596d80843bb7d4f601ef72b3223c54 (patch)
tree08e1cdd58c15a43ab15b1204c7b713ac90eebcb5 /drivers/net/ethernet/intel/igb/e1000_mac.c
parent41f149a285da21529bc9a0bad323df53b2f17b16 (diff)
igb: Implementation of i210/i211 LED support
This patch fixes LED issues with i210 and i211 devices, due to changes in the device registers. Signed-off-by: Akeem G Abodunrin <akeem.g.abodunrin@intel.com> Tested-by: Jeff Pieper <jeffrey.e.pieper@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/igb/e1000_mac.c')
-rw-r--r--drivers/net/ethernet/intel/igb/e1000_mac.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/igb/e1000_mac.c b/drivers/net/ethernet/intel/igb/e1000_mac.c
index 660b7addfbb0..bab556a47fcc 100644
--- a/drivers/net/ethernet/intel/igb/e1000_mac.c
+++ b/drivers/net/ethernet/intel/igb/e1000_mac.c
@@ -1332,7 +1332,13 @@ s32 igb_id_led_init(struct e1000_hw *hw)
1332 u16 data, i, temp; 1332 u16 data, i, temp;
1333 const u16 led_mask = 0x0F; 1333 const u16 led_mask = 0x0F;
1334 1334
1335 ret_val = igb_valid_led_default(hw, &data); 1335 /* i210 and i211 devices have different LED mechanism */
1336 if ((hw->mac.type == e1000_i210) ||
1337 (hw->mac.type == e1000_i211))
1338 ret_val = igb_valid_led_default_i210(hw, &data);
1339 else
1340 ret_val = igb_valid_led_default(hw, &data);
1341
1336 if (ret_val) 1342 if (ret_val)
1337 goto out; 1343 goto out;
1338 1344