[PATCH v1 05/30] net/i40e/base: don't set flags in i40e_init_shared_code

Anatoly Burakov anatoly.burakov at intel.com
Mon Sep 2 11:54:17 CEST 2024


The functionality to set i40e_hw's flags was moved to its own function in
AQ a while ago:

commit 37b091c75b13 ("net/i40e/base: extend PHY access AQ command")

However, the setting of hw->flags for X722 was not removed, even though it
has become unnecessary.

Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
---
 drivers/net/i40e/base/i40e_common.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/net/i40e/base/i40e_common.c b/drivers/net/i40e/base/i40e_common.c
index e4de508aea..451cc2c1c7 100644
--- a/drivers/net/i40e/base/i40e_common.c
+++ b/drivers/net/i40e/base/i40e_common.c
@@ -980,9 +980,6 @@ enum i40e_status_code i40e_init_shared_code(struct i40e_hw *hw)
 	else
 		hw->pf_id = (u8)(func_rid & 0x7);
 
-	if (hw->mac.type == I40E_MAC_X722)
-		hw->flags |= I40E_HW_FLAG_AQ_SRCTL_ACCESS_ENABLE |
-			     I40E_HW_FLAG_NVM_READ_REQUIRES_LOCK;
 	/* NVMUpdate features structure initialization */
 	hw->nvmupd_features.major = I40E_NVMUPD_FEATURES_API_VER_MAJOR;
 	hw->nvmupd_features.minor = I40E_NVMUPD_FEATURES_API_VER_MINOR;
-- 
2.43.5



More information about the dev mailing list