summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukasz Cieplicki <lukaszx.cieplicki@intel.com>2021-05-31 16:55:49 +0000
committerTony Nguyen <anthony.l.nguyen@intel.com>2021-07-23 07:44:48 -0700
commitdc614c46178b0b89bde86ac54fc687a28580d2b7 (patch)
tree748cf42c8c89ff97f32024f19a5a1e0b3133a5c7
parent71d6fdba4b2d82fdd883fec31dee77fbcf59773a (diff)
downloadlinux-dc614c46178b0b89bde86ac54fc687a28580d2b7.tar.bz2
i40e: Add additional info to PHY type error
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>
-rw-r--r--drivers/net/ethernet/intel/i40e/i40e_ethtool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
index d9e26f9713a5..2c9e4eeb7270 100644
--- 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(struct i40e_hw *hw,
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);
}