summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/intel/i40e/i40e_common.c
diff options
context:
space:
mode:
authorPiotr Azarewicz <piotr.azarewicz@intel.com>2019-09-20 12:17:18 +0300
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2019-10-25 23:38:19 +0300
commita3e09ded6a6d4b4cbdeb8c1ec4c7cf60798b3ce0 (patch)
treea4e5573f8163fbb9803051f1bd14e5cdb6e70738 /drivers/net/ethernet/intel/i40e/i40e_common.c
parente42b7e9cefca9dd008cbafffca97285cf264f72d (diff)
downloadlinux-a3e09ded6a6d4b4cbdeb8c1ec4c7cf60798b3ce0.tar.xz
i40e: Extract detection of HW flags into a function
Move code detecting HW flags based on device type and FW API version into a single function. Signed-off-by: Piotr Azarewicz <piotr.azarewicz@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/i40e/i40e_common.c')
-rw-r--r--drivers/net/ethernet/intel/i40e/i40e_common.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_common.c b/drivers/net/ethernet/intel/i40e/i40e_common.c
index f1d67267c983..fe553bb23d7a 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_common.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_common.c
@@ -933,10 +933,6 @@ i40e_status 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;
-
status = i40e_init_nvm(hw);
return status;
}