Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1642731pxy; Mon, 2 Aug 2021 06:56:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwg1KRZiBe+l8C0z7d9VP9hrzgTt7uk0mWBDxmKkj9LFd5TvTHG6nYjG67PwK8xs+PsmJCi X-Received: by 2002:a92:da86:: with SMTP id u6mr3862012iln.265.1627912607258; Mon, 02 Aug 2021 06:56:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627912607; cv=none; d=google.com; s=arc-20160816; b=gRmEzD2vU4ASEKm+e1eVhSxzANczenWgtB2aR5hdTUe8JxYFj4l4FXpfb4Jdx+z9mr miuxmq82CDZ2298Kfn8HQAnzVDSkyabe9OMN0JXYmQu2aFVgp9TYvMAd8yO5CsMtpFzv YlM7RmRDBSTWaJkVBfX5Ni5JQX36lw8p2sVNXLfK4hx9CEKF0/kba6fZmqtwUMSbDAUg FQcozsSefh80E3dWEH5EHc4vBj+TLA6saTFwyfjQ/l9PtdZVL7MdE6GPzRcssXi5m3V+ AYMouX8vZlIYrwilGtD7/QiH581XYwMrat6ZBZdViDd7ng/NNQsXHu3bY53GE5mavaPf 9VUQ== 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=cgLczt0DzCbOwv1x5cFYUI9c691VNTi7pWW5SS9XtBw=; b=BQ70owXdadem78yPRbI6oVdUIeA8lYwXcr5CZ+ld/9lReljhcQGtlxskWS0vSuHHY9 ENcszgE/cji/8hT0GH7gBm7X53vksF4ibrNMgEI11lhxZKengUbYoYw1JjYLc9I34zkA l8y04+g1N6sXAhaPUhauqyy3Zd0EwcgYBUhPJeuR05SW7aXSbjroyMmmnIPIv7zr7iOz TNONeypyPxRweYWShblP3qiZ86GSE2ocsUDKpRlrthlnFaYADvnspXDAtLQkZKS19jBj vRqh/ICPbRcwgd9qtnpXQZuX/vDtrCA2Y7RKzSgCN13SqiSYbR5v8O4vqIwk1O9tpMGo oKjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MZrehf3K; 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 c15si12139533ioa.59.2021.08.02.06.56.34; Mon, 02 Aug 2021 06:56:47 -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=MZrehf3K; 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 S235128AbhHBNzo (ORCPT + 99 others); Mon, 2 Aug 2021 09:55:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:34294 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234893AbhHBNu0 (ORCPT ); Mon, 2 Aug 2021 09:50:26 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DC9B660FF2; Mon, 2 Aug 2021 13:50:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627912217; bh=zfEK27B3VJLeHZ8xlJ5XAClufhFaaukVn6StCpQeLvw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MZrehf3KwoXT07skoSLQ+hTticZXLHbJbvfmUQNKbWFzQqTDQnD0NGY0MlUefoI6b WJSgIK/Cm7QiFnXJYBIt6ha7eBGETFDRxIc9kNHJ81RQNTbrBDDGStbp3XtbHwR+cq r323fsCoK/H9Hs7BthKXJozLCOZ7YlKiYpjhCtf0= 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 4.19 30/30] i40e: Add additional info to PHY type error Date: Mon, 2 Aug 2021 15:45:08 +0200 Message-Id: <20210802134335.055290075@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210802134334.081433902@linuxfoundation.org> References: <20210802134334.081433902@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 @@ -674,7 +674,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); }