Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Commit

Permalink
igb: Fix master/slave mode for all m88 i354 PHY's
Browse files Browse the repository at this point in the history
This patch calls code to set the master/slave mode for all m88 gen 2
PHY's. This patch also removes the call to this function for I210 devices
only from the function that is not called by I210 devices.

Signed-off-by: Carolyn Wyborny <[email protected]>
Tested-by: Jeff Pieper  <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
  • Loading branch information
cwyborny authored and Jeff Kirsher committed Oct 24, 2013
1 parent 718bd44 commit d1c17d8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions drivers/net/ethernet/intel/igb/e1000_phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -708,11 +708,6 @@ s32 igb_copper_link_setup_m88(struct e1000_hw *hw)
hw_dbg("Error committing the PHY changes\n");
goto out;
}
if (phy->type == e1000_phy_i210) {
ret_val = igb_set_master_slave_mode(hw);
if (ret_val)
return ret_val;
}

out:
return ret_val;
Expand Down Expand Up @@ -806,6 +801,9 @@ s32 igb_copper_link_setup_m88_gen2(struct e1000_hw *hw)
hw_dbg("Error committing the PHY changes\n");
return ret_val;
}
ret_val = igb_set_master_slave_mode(hw);
if (ret_val)
return ret_val;

return 0;
}
Expand Down

0 comments on commit d1c17d8

Please sign in to comment.