Skip to contentSkip to conversation

i40e: Set PHY Access flag on X722

PATCH New Alice Michael 2 participants 2 messages Nov 6, 2019 – Nov 7, 2019

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

PATCH 1/1 i40e: Set PHY Access flag on X722

From: Adam Ludkiewicz <[email protected]>

The X722 FW API version 1.9 adds support for accessing PHY registers with Admin Queue Command. This enables reading EEPROM data from (Q)SFP+ transceivers, what was previously possible only on X710 devices.

---
 drivers/net/ethernet/intel/i40e/i40e_adminq.c     | 5 +++++
 drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h | 2 ++
 2 files changed, 7 insertions(+)
drivers/net/ethernet/intel/i40e/i40e_adminq.c +5 -0
index 9f0a4e92a231..37514a75f928 100644
@@ -536,6 +536,11 @@ static void i40e_set_hw_flags(struct i40e_hw *hw)
 		    (aq->api_maj_ver == 1 &&
 		     aq->api_min_ver >= I40E_MINOR_VER_FW_LLDP_STOPPABLE_X722))
 			hw->flags |= I40E_HW_FLAG_FW_LLDP_STOPPABLE;
+
+		if (aq->api_maj_ver > 1 ||
+		    (aq->api_maj_ver == 1 &&
+		     aq->api_min_ver >= I40E_MINOR_VER_GET_LINK_INFO_X722))
+			hw->flags |= I40E_HW_FLAG_AQ_PHY_ACCESS_CAPABLE;
 		/* fall through */
 	default:
 		break;
drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h +2 -0
index a23f89fb33ee..aa5f1c0aa721 100644
@@ -20,6 +20,8 @@
 
 /* API version 1.7 implements additional link and PHY-specific APIs  */
 #define I40E_MINOR_VER_GET_LINK_INFO_XL710 0x0007
+/* API version 1.9 for X722 implements additional link and PHY-specific APIs */
+#define I40E_MINOR_VER_GET_LINK_INFO_X722 0x0009
 /* API version 1.6 for X722 devices adds ability to stop FW LLDP agent */
 #define I40E_MINOR_VER_FW_LLDP_STOPPABLE_X722 0x0006
 
Signature · 1 line
2.21.0
#1 lore raw

PATCH 1/1 i40e: Set PHY Access flag on X722

Quoted 15 lines

-----Original Message-----
From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On Behalf Of Alice Michael
Sent: Wednesday, November 6, 2019 6:24 AM
To: Michael, Alice <[email protected]>; intel-wired- lan at lists.osuosl.org
Cc: Ludkiewicz, Adam <[email protected]>
Subject: [Intel-wired-lan] [PATCH] i40e: Set PHY Access flag on X722

From: Adam Ludkiewicz <[email protected]>

The X722 FW API version 1.9 adds support for accessing PHY registers with Admin Queue Command. This enables reading EEPROM data from (Q)SFP+ transceivers, what was previously possible only on X710 devices.

Quoted 5 lines
---
 drivers/net/ethernet/intel/i40e/i40e_adminq.c     | 5 +++++
 drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h | 2 ++
 2 files changed, 7 insertions(+)