Commit ed65bdd8 authored by Carolyn Wyborny's avatar Carolyn Wyborny Committed by Jeff Kirsher

igb: Fix link setup for I210 devices

This patch changes the setup copper link function to use a switch
statement for the PHY id's available for the given PHY types.  It
also adds a case for the I210 PHY id, so the appropriate setup link
function is called for it.
Signed-off-by: default avatarCarolyn Wyborny <carolyn.wyborny@intel.com>
Tested-by: default avatarAaron Brown <aaron.f.brown@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent e4f7dbb1
...@@ -1361,11 +1361,16 @@ static s32 igb_setup_copper_link_82575(struct e1000_hw *hw) ...@@ -1361,11 +1361,16 @@ static s32 igb_setup_copper_link_82575(struct e1000_hw *hw)
switch (hw->phy.type) { switch (hw->phy.type) {
case e1000_phy_i210: case e1000_phy_i210:
case e1000_phy_m88: case e1000_phy_m88:
if (hw->phy.id == I347AT4_E_PHY_ID || switch (hw->phy.id) {
hw->phy.id == M88E1112_E_PHY_ID) case I347AT4_E_PHY_ID:
case M88E1112_E_PHY_ID:
case I210_I_PHY_ID:
ret_val = igb_copper_link_setup_m88_gen2(hw); ret_val = igb_copper_link_setup_m88_gen2(hw);
else break;
default:
ret_val = igb_copper_link_setup_m88(hw); ret_val = igb_copper_link_setup_m88(hw);
break;
}
break; break;
case e1000_phy_igp_3: case e1000_phy_igp_3:
ret_val = igb_copper_link_setup_igp(hw); ret_val = igb_copper_link_setup_igp(hw);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment