Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1651497pxy; Mon, 2 Aug 2021 07:06:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzb8P0kvUs0a5ERXVWrsHJVq++CCHv3P555xGphMEJH3Hr5lN06IO7KzyFyTsDbw5e5bt/m X-Received: by 2002:aa7:d899:: with SMTP id u25mr19486217edq.151.1627913194277; Mon, 02 Aug 2021 07:06:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627913194; cv=none; d=google.com; s=arc-20160816; b=WJco4P4r6fBS1z5RWnN3Thnafmr2l1zcIrufci+f33QHVgKZIouadQwHTjCdktlppx DkFmSoaK3oF4raJvxrAxDR7Og+RJcfqPw/T7TDkwnAaySoFEO7InSNOLfWKtqy/tKQCD BAgRRUY0D/YNyC8jyoZjMcRs1JtucrmRbQyW99Q1mauBMx4EyG+QqcCN+xdFGMXSk+VW RxlyefzsFPA4Nkk5ic6yIr5VKmpW6JilY8fbL48aKMSXCdQ0BnDh6aML7NzBaUDQieN5 c5DvtGSo/zG2sNMEs0G9KbK+BTzWYma5Um06oO5MB1LJLK+wNVtd+A/v/DekbsbXZqL/ 7cdA== 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=hKHYo/npVgEZm/vLIsguPaPoaUcG/XORM7+WAJIHyeo=; b=KPXJMHsaQsWZkQgF60se48b/ZrkBY8z685qowJ4ChwWcRxQf7ZGWEoyRlvMlnhOmDf qhDRHvPp9Cp+1lKnMKe7R6P1TZNF9ijh/5hjKtQIUU/voayt/7KC4KsNCbtG97YPnUmA HgOibSaQxBSmxoFKmecUX61tOhO4UKNet8D0uzgW1kuQgJ9eqC3JuscrVdgAC07SwZBu zyY178wD5xpNvNgcQ6OmMO+A/SG6214PqyGKHHxRZQWJUcKd7439drBFxQpBjjIgmq5k g4qhnfbSuS8bEA66EE8JxXdexDpKtW1X9S2H7MW5Ft47e2Wjy+WifXRyAMsUUzb+Wra1 K7mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Ia7rb0Do; 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 l33si13090424ede.457.2021.08.02.07.06.09; Mon, 02 Aug 2021 07:06:34 -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=Ia7rb0Do; 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 S236655AbhHBOEQ (ORCPT + 99 others); Mon, 2 Aug 2021 10:04:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:43028 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235225AbhHBN4O (ORCPT ); Mon, 2 Aug 2021 09:56:14 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9B22A6112D; Mon, 2 Aug 2021 13:54:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627912470; bh=mtAyM5L3tHxPRG8Xun/z/inxFpSPyTVOTAv0BBc/6Kk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ia7rb0DontZwppcbz2NCS/e0H9tY1B7nTsto7AoZqjxzM2xTviDkIe5bq/2K7LSxF 8owmZdYR3kLXgFsfILxMcWnfOc/pXo3dBodQ1Oia1XqiN4YOVlSS3i2PJekKaDiwVF zdMaELiubJxv3oWQqKX6GKFt36bba7XBU9xow2os= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lukasz Cieplicki , Michal Maloszewski , Tony Brelinski , Tony Nguyen Subject: [PATCH 5.10 66/67] i40e: Add additional info to PHY type error Date: Mon, 2 Aug 2021 15:45:29 +0200 Message-Id: <20210802134341.302667404@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210802134339.023067817@linuxfoundation.org> References: <20210802134339.023067817@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: Lukasz Cieplicki commit dc614c46178b0b89bde86ac54fc687a28580d2b7 upstream. In case of PHY type error occurs, the message was too generic. Add additional info to PHY type error indicating that it can be wrong cable connected. Fixes: 124ed15bf126 ("i40e: Add dual speed module support") Signed-off-by: Lukasz Cieplicki Signed-off-by: Michal Maloszewski Tested-by: Tony Brelinski Signed-off-by: Tony Nguyen Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c +++ b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c @@ -980,7 +980,7 @@ static void i40e_get_settings_link_up(st default: /* if we got here and link is up something bad is afoot */ netdev_info(netdev, - "WARNING: Link is up but PHY type 0x%x is not recognized.\n", + "WARNING: Link is up but PHY type 0x%x is not recognized, or incorrect cable is in use\n", hw_link_info->phy_type); }