Skip to contentSkip to conversation

i40e: Add additional info to PHY type error

PATCH New Michał Małoszewski 2 participants 2 messages May 31, 2021 – Jun 23, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i40e: Add additional info to PHY type error

From: Lukasz Cieplicki <[email protected]>

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")
---
 drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/i40e/i40e_ethtool.c +1 -1
index 45f5dc2..7a1d2d5 100644
@@ -971,7 +971,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);
 	}
 
Signature · 1 line
1.8.3.1
#1 lore raw

PATCH 1/1 i40e: Add additional info to PHY type error

Quoted 16 lines

-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Michal Maloszewski
Sent: Monday, May 31, 2021 9:56 AM
To: intel-wired-lan at lists.osuosl.org
Cc: Maloszewski, Michal <[email protected]>; Cieplicki, LukaszX <[email protected]>
Subject: [Intel-wired-lan] [PATCH net v1] i40e: Add additional info to PHY type error

From: Lukasz Cieplicki <[email protected]>

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.

Quoted 6 lines
Fixes 124ed15bf126 ("i40e: Add dual speed module support")
---
 drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)