aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igb/e1000_82575.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/intel/igb/e1000_82575.c')
-rw-r--r--drivers/net/ethernet/intel/igb/e1000_82575.c36
1 files changed, 2 insertions, 34 deletions
diff --git a/drivers/net/ethernet/intel/igb/e1000_82575.c b/drivers/net/ethernet/intel/igb/e1000_82575.c
index dd9b6cac220d..bafdcf70a353 100644
--- a/drivers/net/ethernet/intel/igb/e1000_82575.c
+++ b/drivers/net/ethernet/intel/igb/e1000_82575.c
@@ -1,26 +1,5 @@
1// SPDX-License-Identifier: GPL-2.0 1// SPDX-License-Identifier: GPL-2.0
2/* Intel(R) Gigabit Ethernet Linux driver 2/* Copyright(c) 2007 - 2018 Intel Corporation. */
3 * Copyright(c) 2007-2015 Intel Corporation.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU General Public License,
7 * version 2, as published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along with
15 * this program; if not, see <http://www.gnu.org/licenses/>.
16 *
17 * The full GNU General Public License is included in this distribution in
18 * the file called "COPYING".
19 *
20 * Contact Information:
21 * e1000-devel Mailing List <e1000-devel@lists.sourceforge.net>
22 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
23 */
24 3
25/* e1000_82575 4/* e1000_82575
26 * e1000_82576 5 * e1000_82576
@@ -246,19 +225,7 @@ static s32 igb_init_phy_params_82575(struct e1000_hw *hw)
246 hw->bus.func = (rd32(E1000_STATUS) & E1000_STATUS_FUNC_MASK) >> 225 hw->bus.func = (rd32(E1000_STATUS) & E1000_STATUS_FUNC_MASK) >>
247 E1000_STATUS_FUNC_SHIFT; 226 E1000_STATUS_FUNC_SHIFT;
248 227
249 /* Make sure the PHY is in a good state. Several people have reported
250 * firmware leaving the PHY's page select register set to something
251 * other than the default of zero, which causes the PHY ID read to
252 * access something other than the intended register.
253 */
254 ret_val = hw->phy.ops.reset(hw);
255 if (ret_val) {
256 hw_dbg("Error resetting the PHY.\n");
257 goto out;
258 }
259
260 /* Set phy->phy_addr and phy->id. */ 228 /* Set phy->phy_addr and phy->id. */
261 igb_write_phy_reg_82580(hw, I347AT4_PAGE_SELECT, 0);
262 ret_val = igb_get_phy_id_82575(hw); 229 ret_val = igb_get_phy_id_82575(hw);
263 if (ret_val) 230 if (ret_val)
264 return ret_val; 231 return ret_val;
@@ -1741,6 +1708,7 @@ static s32 igb_setup_serdes_link_82575(struct e1000_hw *hw)
1741 case E1000_CTRL_EXT_LINK_MODE_1000BASE_KX: 1708 case E1000_CTRL_EXT_LINK_MODE_1000BASE_KX:
1742 /* disable PCS autoneg and support parallel detect only */ 1709 /* disable PCS autoneg and support parallel detect only */
1743 pcs_autoneg = false; 1710 pcs_autoneg = false;
1711 /* fall through */
1744 default: 1712 default:
1745 if (hw->mac.type == e1000_82575 || 1713 if (hw->mac.type == e1000_82575 ||
1746 hw->mac.type == e1000_82576) { 1714 hw->mac.type == e1000_82576) {