Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp47659imu; Thu, 8 Nov 2018 14:31:56 -0800 (PST) X-Google-Smtp-Source: AJdET5e0DEJdNwSO8gFoRmuX8U73Jqcv/DysBgnHrXSL9SJy1YwuaigCj4cQXrBhKaKbS2VIs6B/ X-Received: by 2002:a63:6883:: with SMTP id d125-v6mr5259697pgc.451.1541716315955; Thu, 08 Nov 2018 14:31:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541716315; cv=none; d=google.com; s=arc-20160816; b=O3rwIvmxlm0KwL4lirVGOl3z6XYtH2brYkTvE1Q4zpCGo1JJVt9+CKnhnf1K0l3mXG g6K/A68X++6CMRDoBVhfI+5GLhveVGX727lZAWfItHerhlbKUYoalkHL1PrZ5+DYomGJ TFcIgvD2t6zCafbZQvIgzqMREWn01JYqfYz0tcBPY1aIsKEFN7bv8HrTWvQ5RwxgcAh6 T1Eo2wphFoTwh4VwgIJ7tbSOXCaThnKR6Harp32TWlLO3+v8XPGiyzKpIjkIdpcbiddA 6RpK6ZLmJ6UOSKHXRDDFihXiL/SFW2npWP/0TYFpqtY1C002e0MdonsCerLcnZdqX95o UF5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=80fYSVFJoBeaFDmS8x2u3vgWtRa4F5JY/22XAkTVHv0=; b=mYNGku/CZiGYuv+5Wzy45z5/ZYrmUDuHCn4oUi2BFurXcII9HYZKkQQmifo4ATJnjk rdNZrcko83d4YhxRs7M8CG9eE4xH8wXNeOH7a+J+PYCl6Vr4+XnwPEu5cOPb2soBrfHn /pag0/V/aJ+spvq8uNchJwFczggz0ot6Z3gL/1q6Zp+ltW/sgZnVr9VS5TiV+lpTjYR3 4mp0Rx28wO8ljQhZD3H2z7lZ9jDm4hA2t6OZ/Vk89d0I5hopy7BiI7MnyyZZEaBAmFaK EiCzW9kXyp9HqHsVQ/09DdhYXcg4dRuCmSz1+n1V80rjfwj1C3Vv0sYiLb2+btXWMQ9g qlNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Uwrb4M3J; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l68-v6si6046142pfl.56.2018.11.08.14.31.40; Thu, 08 Nov 2018 14:31:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Uwrb4M3J; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729539AbeKIII6 (ORCPT + 99 others); Fri, 9 Nov 2018 03:08:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:56748 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730504AbeKIHh5 (ORCPT ); Fri, 9 Nov 2018 02:37:57 -0500 Received: from localhost (unknown [208.72.13.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DF85F21019; Thu, 8 Nov 2018 22:00:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541714428; bh=ZhBG7QhBSiuVSTiPZDDHmlwgHoY9Pvg0RTh6T637eJ4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Uwrb4M3JXWsVH2cTzeeFOF3cFdqB4h9scH/JF53VqI2H0XdylV9wzul50xtS0Okfw lDUzT/8HKIbXn7o8c1ueBCs4tmYVgabCQU/rboz5eQDo6WTTAevMGsgId21bZdOYeY ZKYtKy8yoDrQkq6S5sEJOUZ0PJvWUkikniDTwfxo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Christian=20Gr=C3=B6nke?= , Alexander Duyck , Aaron Brown , Jeff Kirsher , Sasha Levin Subject: [PATCH 4.4 082/114] igb: Remove superfluous reset to PHY and page 0 selection Date: Thu, 8 Nov 2018 13:51:37 -0800 Message-Id: <20181108215108.332030439@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181108215059.051093652@linuxfoundation.org> References: <20181108215059.051093652@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 2a83fba6cae89dd9c0625e68ff8ffff791c67ac0 ] This patch reverts two previous applied patches to fix an issue that appeared when using SGMII based SFP modules. In the current state the driver will try to reset the PHY before obtaining the phy_addr of the SGMII attached PHY. That leads to an error in e1000_write_phy_reg_sgmii_82575. Causing the initialization to fail: igb: Intel(R) Gigabit Ethernet Network Driver - version 5.4.0-k igb: Copyright (c) 2007-2014 Intel Corporation. igb: probe of ????:??:??.? failed with error -3 The patches being reverted are: commit 182785335447957409282ca745aa5bc3968facee Author: Aaron Sierra Date: Tue Nov 29 10:03:56 2016 -0600 igb: reset the PHY before reading the PHY ID commit 440aeca4b9858248d8f16d724d9fa87a4f65fa33 Author: Matwey V Kornilov Date: Thu Nov 24 13:32:48 2016 +0300 igb: Explicitly select page 0 at initialization The first reverted patch directly causes the problem mentioned above. In case of SGMII the phy_addr is not known at this point and will only be obtained by 'igb_get_phy_id_82575' further down in the code. The second removed patch selects forces selection of page 0 in the PHY. Something that the reset tries to address as well. As pointed out by Alexander Duzck, the patch below fixes the same issue but in the proper location: commit 4e684f59d760a2c7c716bb60190783546e2d08a1 Author: Chris J Arges Date: Wed Nov 2 09:13:42 2016 -0500 igb: Workaround for igb i210 firmware issue Reverts: 440aeca4b9858248d8f16d724d9fa87a4f65fa33. Reverts: 182785335447957409282ca745aa5bc3968facee. Signed-off-by: Christian Grönke Reviewed-by: Alexander Duyck Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher Signed-off-by: Sasha Levin --- drivers/net/ethernet/intel/igb/e1000_82575.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/net/ethernet/intel/igb/e1000_82575.c b/drivers/net/ethernet/intel/igb/e1000_82575.c index f3f3b95d5512..97bf0c3d5c69 100644 --- a/drivers/net/ethernet/intel/igb/e1000_82575.c +++ b/drivers/net/ethernet/intel/igb/e1000_82575.c @@ -223,17 +223,6 @@ static s32 igb_init_phy_params_82575(struct e1000_hw *hw) hw->bus.func = (rd32(E1000_STATUS) & E1000_STATUS_FUNC_MASK) >> E1000_STATUS_FUNC_SHIFT; - /* Make sure the PHY is in a good state. Several people have reported - * firmware leaving the PHY's page select register set to something - * other than the default of zero, which causes the PHY ID read to - * access something other than the intended register. - */ - ret_val = hw->phy.ops.reset(hw); - if (ret_val) { - hw_dbg("Error resetting the PHY.\n"); - goto out; - } - /* Set phy->phy_addr and phy->id. */ ret_val = igb_get_phy_id_82575(hw); if (ret_val) -- 2.17.1