Return-Path: Received: from mail-dm3nam03on0105.outbound.protection.outlook.com ([104.47.41.105]:26547 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754631AbeARVBN (ORCPT ); Thu, 18 Jan 2018 16:01:13 -0500 From: Sasha Levin To: "stable@vger.kernel.org" , "stable-commits@vger.kernel.org" CC: Sumit Semwal , Chris J Arges , Jeff Kirsher , Sasha Levin Subject: [added to the 4.1 stable tree] igb: Workaround for igb i210 firmware issue Date: Thu, 18 Jan 2018 21:00:00 +0000 Message-ID: <20180118205908.3220-71-alexander.levin@microsoft.com> References: <20180118205908.3220-1-alexander.levin@microsoft.com> In-Reply-To: <20180118205908.3220-1-alexander.levin@microsoft.com> Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org List-ID: From: Sumit Semwal This patch has been added to the stable tree. If you have any objections, please let us know. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D [ Upstream commit 4e684f59d760a2c7c716bb60190783546e2d08a1 ] Sometimes firmware may not properly initialize I347AT4_PAGE_SELECT causing the probe of an igb i210 NIC to fail. This patch adds an addition zeroing of this register during igb_get_phy_id to workaround this issue. Thanks for Jochen Henneberg for the idea and original patch. Signed-off-by: Chris J Arges Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher Signed-off-by: Sasha Levin --- drivers/net/ethernet/intel/igb/e1000_phy.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/ethernet/intel/igb/e1000_phy.c b/drivers/net/ether= net/intel/igb/e1000_phy.c index c1bb64d8366f..bffbcc085689 100644 --- a/drivers/net/ethernet/intel/igb/e1000_phy.c +++ b/drivers/net/ethernet/intel/igb/e1000_phy.c @@ -83,6 +83,10 @@ s32 igb_get_phy_id(struct e1000_hw *hw) s32 ret_val =3D 0; u16 phy_id; =20 + /* ensure PHY page selection to fix misconfigured i210 */ + if (hw->mac.type =3D=3D e1000_i210) + phy->ops.write_reg(hw, I347AT4_PAGE_SELECT, 0); + ret_val =3D phy->ops.read_reg(hw, PHY_ID1, &phy_id); if (ret_val) goto out; --=20 2.11.0