aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/igb/e1000_mac.c
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@intel.com>2009-07-23 14:07:40 -0400
committerDavid S. Miller <davem@davemloft.net>2009-07-26 12:46:42 -0400
commit099e1cb700da6359b784ac7fb65099091b7b961e (patch)
tree406c583a91978cad2de9d7ada171b98c7be30a63 /drivers/net/igb/e1000_mac.c
parentdcc3ae9a5252ea4ffe65b43cdc09ec2654b48000 (diff)
igb: make serdes power down available for 82575 in addition to 82576 parts
There was a serdes power down workaround that was originally added for 82576 fiber. However it has also been found that this workaround is needed for serdes connections as well. In addition it is also needed for 82575 serdes so we we need to remove the checks restricting it to 82576. Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/igb/e1000_mac.c')
-rw-r--r--drivers/net/igb/e1000_mac.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/drivers/net/igb/e1000_mac.c b/drivers/net/igb/e1000_mac.c
index 37706d9981e8..34f1a370b068 100644
--- a/drivers/net/igb/e1000_mac.c
+++ b/drivers/net/igb/e1000_mac.c
@@ -1064,9 +1064,17 @@ static s32 igb_valid_led_default(struct e1000_hw *hw, u16 *data)
1064 goto out; 1064 goto out;
1065 } 1065 }
1066 1066
1067 if (*data == ID_LED_RESERVED_0000 || *data == ID_LED_RESERVED_FFFF) 1067 if (*data == ID_LED_RESERVED_0000 || *data == ID_LED_RESERVED_FFFF) {
1068 *data = ID_LED_DEFAULT; 1068 switch(hw->phy.media_type) {
1069 1069 case e1000_media_type_internal_serdes:
1070 *data = ID_LED_DEFAULT_82575_SERDES;
1071 break;
1072 case e1000_media_type_copper:
1073 default:
1074 *data = ID_LED_DEFAULT;
1075 break;
1076 }
1077 }
1070out: 1078out:
1071 return ret_val; 1079 return ret_val;
1072} 1080}