Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1646665pxy; Mon, 2 Aug 2021 07:01:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0LCRyeSyb1wcXKWBpaAVqu71FBumBZxJGcRVPKZZpZfjgs04DzMLBzSy8WkWc3K88jAEe X-Received: by 2002:a05:6638:3a12:: with SMTP id j18mr15302047jaj.75.1627912898568; Mon, 02 Aug 2021 07:01:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627912898; cv=none; d=google.com; s=arc-20160816; b=EEWCVVSOjlfidKHfvIkzSSlLxKyfMThxpFmQREdrWGg/AzbicuW+PVYUyCaFNAFK7Q BkNC7rDOY3+SJUD3WE/9JyhnglzJGzkvXDDKVxd3A3UHyR/ACk8d84sC8A9VCwuj2c+o cUa4nmHoZuXliRiV3VcdWi0umQIH56cn5P5cAjaHxDpjHHbTYNHMIq39VkmE3J7Ljq3M scbO17j0s5hCoArrcu4zDCmbz+me7Rfw+H7Jx5Sq4h3M1PxXt2oirDTPbIsrBd+LWP4H 9sFDOq4SPmFlZeBqA4/irUgu0M9sj1pdLBHsm64/J467Hy9z5CvEnRqws+9YyOAjr10G eZ6g== 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=3rc4TQ/2AzUGXoJTZrmPQDqXZUKHfYdn6NbSJvaxUSo=; b=fen9CgXuzXRcE0xEdkhOc6waRoo8CInsrD3u0aFWGanLvn1bDj9ZXZyHbtvxxckP0v CNSBoSS7JLxpzmPkz0a9QiHH0fXXsjrs1m0/EpXeTYCiUI3Q2FTzxZYMo4PCJ3FNmbOv vhECr+3IKwaCvhfgIEDSeGRid5nVxqoCz9P1KBvdhk78iPzHBXZ0euGUgPl67iXUSY// aMBJtwRBs8oWuR3TQb4uNVHxPksBpoXg4CdReWe7UxMhjhd9Mhn9cMR3ArLD/2CPxzXZ PyG1l3Vt+7KicANZcUWVXTHeQsZfR7yLFkJMtt0QNw5uU6v3LhfgKx2ptlU25n0Jqh0g 05rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Gm4gZ+Mg; 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 d9si12193852ila.112.2021.08.02.07.01.26; Mon, 02 Aug 2021 07:01:38 -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=Gm4gZ+Mg; 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 S235839AbhHBOAQ (ORCPT + 99 others); Mon, 2 Aug 2021 10:00:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:34462 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235283AbhHBNwy (ORCPT ); Mon, 2 Aug 2021 09:52:54 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 218146112E; Mon, 2 Aug 2021 13:51:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627912306; bh=olWVme/R2SJATgeE1UfI9K5KtCxkHtTTuWFkDBoLYYU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Gm4gZ+MgeqxekmNV9wgM6GnJGcEaWXTxBmGgrUaLdfNsutmzKuYr7aZZdb2hrRbx3 hNiVElJ1I+xzrMukKA0kjM+2VXBVtcKrYJfNGBWI6z1KZ165R4MfWV2PEngJ3SYG/+ 9nJwOVNcyJsvl5XV/8+XZt5Ipj+bTkByZVSyjUuo= 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.4 39/40] i40e: Add additional info to PHY type error Date: Mon, 2 Aug 2021 15:45:19 +0200 Message-Id: <20210802134336.642799392@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210802134335.408294521@linuxfoundation.org> References: <20210802134335.408294521@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 @@ -977,7 +977,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); }