Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2102235pxb; Mon, 12 Apr 2021 14:34:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGb1kze6fM6YMhiuDsVer/X3gPeALXsw8Sgbqsps+kU/m3LBsXqLjzQPKtRwgMrQAu21qv X-Received: by 2002:a05:6402:10c6:: with SMTP id p6mr30991753edu.241.1618263285289; Mon, 12 Apr 2021 14:34:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618263285; cv=none; d=google.com; s=arc-20160816; b=hntJqhBmgKf43cBez72N8Ma5bWkCbUaMnXmE3oR+jc6Ot+24j0SurbOaiqExZu1IMD 26QuCD9unhYcGHlEugX53lYIamxt4eSBRM3eNcqQL5B+EXwg8daRREVSXqH5XozFWUbD sfv6gbsdjxvyj4g+UgzLzF8cj23EuXvalxOWjFRFdVyRJ38a1rn7X02nra4o5o70Zw70 zgFxm1MqpYexMCZaTxd+dDA5vC2QG1Wz3AJq0NGWOYUxfRTjSixzDXIns9pzjsuj41Te eIOv/7XU9VY/i3t5powrYfBityfobanTYZRk+G7mFm9e6lod/OBAozn78LlKwea87zi+ lRzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=M0DEMAFGxPNuAf7AnAtONblVfH1BILPRxuFLvHyW3D0=; b=hO8bPhRtsrDbgVTv/uv3XGfcDkcSHjtfzloQtIk/ojNx+3If+8gAbZcvi1hyd6rRwn odlUMOTVshFpkSMRk3VdORuVC88UX6XdMChSJgYvVJmE70QVGJE+Q1o3B6lciTc8nTFv zmQaoQv/cjeDE1T2wZd5i9A+P93Yi/GICpL4RbcP9VpLCg6oCfLsCa3lCMJSAyiU1Xn7 /4qJXpl8XDfqOR8SfM7wNDID4nhKfMK5ntfHxurUA2Z9523mcE7GG81G4cFkR+/Ok60s 7BoWbu3G96BTmS44d96p81YXbjgBg99SDlidAZpXLJyjfAixQwbHtgDtiikf+e7wmLuV V5eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=apRYVeDa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id do18si7846454ejc.109.2021.04.12.14.34.22; Mon, 12 Apr 2021 14:34:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=apRYVeDa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241564AbhDLJQp (ORCPT + 99 others); Mon, 12 Apr 2021 05:16:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:49038 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239117AbhDLI7N (ORCPT ); Mon, 12 Apr 2021 04:59:13 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 00C6161249; Mon, 12 Apr 2021 08:57:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1618217847; bh=QxmsrCTn/9n1/8aQBFIoSviyTKNO6UzZHOjKMK600qc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=apRYVeDa/xj64F1UKa77pWal3+xGfUHlStEwNyBGeGi16VdNHDLKntPEGJZBY9SM5 u1XafpGKs7BFJPnD6fOxWV7Eba3gNOdZMzgu+NnwBf3+YDgv2PQB6qaTWMhP7dJ7a0 O04y/1vm6NQCrfNbJCyaZirrGf+Vh4r8Za/WEypg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Grzegorz Siwik , Dave Switzer , Tony Nguyen , Sasha Levin Subject: [PATCH 5.10 165/188] i40e: Fix parameters in aq_get_phy_register() Date: Mon, 12 Apr 2021 10:41:19 +0200 Message-Id: <20210412084019.117776085@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210412084013.643370347@linuxfoundation.org> References: <20210412084013.643370347@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Grzegorz Siwik [ Upstream commit b2d0efc4be7ed320e33eaa9b6dd6f3f6011ffb8e ] Change parameters order in aq_get_phy_register() due to wrong statistics in PHY reported by ethtool. Previously all PHY statistics were exactly the same for all interfaces Now statistics are reported correctly - different for different interfaces Fixes: 0514db37dd78 ("i40e: Extend PHY access with page change flag") Signed-off-by: Grzegorz Siwik Tested-by: Dave Switzer Signed-off-by: Tony Nguyen Signed-off-by: Sasha Levin --- drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c index 849e38be69ff..31d48a85cfaf 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c +++ b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c @@ -5285,7 +5285,7 @@ static int i40e_get_module_eeprom(struct net_device *netdev, status = i40e_aq_get_phy_register(hw, I40E_AQ_PHY_REG_ACCESS_EXTERNAL_MODULE, - true, addr, offset, &value, NULL); + addr, true, offset, &value, NULL); if (status) return -EIO; data[i] = value; -- 2.30.2