Skip to contentSkip to conversation

i40e: Fix PHY type identifiers for 2.5G and 5G adapters

PATCH Superseded Mateusz Palczewski 1 participant 1 message Mar 31, 2021

Subsystems (2)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i40e: Fix PHY type identifiers for 2.5G and 5G adapters

Unlike other supported adapters, 2.5G and 5G use different PHY type identifiers for reading/writing PHY settings and for reading link status. Introduce separate PHY identifiers for these two operation types.

Fixes 2e45d3f4677a ("i40e: Add support for X710 B/P & SFP+ cards")
---
 drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h +2 -0
index ce626ea..78ba6b0 100644
@@ -1568,6 +1568,8 @@ enum i40e_aq_phy_type {
 	I40E_PHY_TYPE_25GBASE_ACC		= 0x24,
 	I40E_PHY_TYPE_2_5GBASE_T		= 0x30,
 	I40E_PHY_TYPE_5GBASE_T			= 0x31,
+	I40E_PHY_TYPE_2_5GBASE_T_LINK_STATUS	= 0x30,
+	I40E_PHY_TYPE_5GBASE_T_LINK_STATUS	= 0x31,
 	I40E_PHY_TYPE_MAX,
 	I40E_PHY_TYPE_NOT_SUPPORTED_HIGH_TEMP	= 0xFD,
 	I40E_PHY_TYPE_EMPTY			= 0xFE,
Signature · 1 line
2.17.1