]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.19-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Aug 2021 11:52:46 +0000 (13:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Aug 2021 11:52:46 +0000 (13:52 +0200)
added patches:
i40e-add-additional-info-to-phy-type-error.patch

queue-4.19/i40e-add-additional-info-to-phy-type-error.patch [new file with mode: 0644]
queue-4.19/series

diff --git a/queue-4.19/i40e-add-additional-info-to-phy-type-error.patch b/queue-4.19/i40e-add-additional-info-to-phy-type-error.patch
new file mode 100644 (file)
index 0000000..4c146e5
--- /dev/null
@@ -0,0 +1,34 @@
+From dc614c46178b0b89bde86ac54fc687a28580d2b7 Mon Sep 17 00:00:00 2001
+From: Lukasz Cieplicki <lukaszx.cieplicki@intel.com>
+Date: Mon, 31 May 2021 16:55:49 +0000
+Subject: i40e: Add additional info to PHY type error
+
+From: Lukasz Cieplicki <lukaszx.cieplicki@intel.com>
+
+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 <lukaszx.cieplicki@intel.com>
+Signed-off-by: Michal Maloszewski <michal.maloszewski@intel.com>
+Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
+Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ 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);
+       }
index 8cc202ec9e2ae2b4fd23eae0659d41dd52a5a6ca..c7d14aa442ec21d00d11e9a436002e0a167b3db4 100644 (file)
@@ -27,3 +27,4 @@ sis900-fix-missing-pci_disable_device-in-probe-and-r.patch
 can-hi311x-fix-a-signedness-bug-in-hi3110_cmd.patch
 powerpc-pseries-fix-regression-while-building-external-modules.patch
 revert-perf-map-fix-dso-nsinfo-refcounting.patch
+i40e-add-additional-info-to-phy-type-error.patch