]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: iwlwifi: remove nvm_ver for devices that don't need it
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 12 May 2026 05:22:59 +0000 (08:22 +0300)
committerMiri Korenblit <miriam.rachel.korenblit@intel.com>
Tue, 26 May 2026 12:17:10 +0000 (15:17 +0300)
This was needed only to check the NVM for devices that had a specific
firmware image to run the initial calibrations.
Remove this field from newer devices that no longer have a specific
image for those.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Link: https://patch.msgid.link/20260512082114.261b04a1b8f2.I5834a3efd0ae7e601a02cc0582287ced405a0aef@changeid
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
drivers/net/wireless/intel/iwlwifi/cfg/rf-fm.c
drivers/net/wireless/intel/iwlwifi/cfg/rf-gf.c
drivers/net/wireless/intel/iwlwifi/cfg/rf-hr.c
drivers/net/wireless/intel/iwlwifi/cfg/rf-pe.c
drivers/net/wireless/intel/iwlwifi/cfg/rf-wh.c
drivers/net/wireless/intel/iwlwifi/cfg/sc.c

index ad2536f53084711be0b87a6394c15debf253c4e3..f482536e6b5e3402f2f833a2f56e82de29d3b5d9 100644 (file)
@@ -1,7 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
 /*
  * Copyright (C) 2015-2017 Intel Deutschland GmbH
- * Copyright (C) 2018-2025 Intel Corporation
+ * Copyright (C) 2018-2026 Intel Corporation
  */
 #include "iwl-config.h"
 
@@ -11,9 +11,6 @@
 #define IWL_GL_B_FM_B_FW_PRE           "iwlwifi-gl-b0-fm-b0"
 #define IWL_GL_C_FM_C_FW_PRE           "iwlwifi-gl-c0-fm-c0"
 
-/* NVM versions */
-#define IWL_FM_NVM_VERSION             0x0a1d
-
 #define IWL_DEVICE_FM                                                  \
        .ht_params = {                                                  \
                .stbc = true,                                           \
@@ -27,7 +24,6 @@
        .uhb_supported = true,                                          \
        .eht_supported = true,                                          \
        .num_rbds = IWL_NUM_RBDS_EHT,                                   \
-       .nvm_ver = IWL_FM_NVM_VERSION,                                  \
        .nvm_type = IWL_NVM_EXT
 
 const struct iwl_rf_cfg iwl_rf_fm = {
index c16cda087a7c31c4a3f308db4450960121760a49..0c20fe619f9352f8147eea48e6627b2fbcc76cf9 100644 (file)
@@ -35,9 +35,6 @@
 #define IWL_SC_A_GF4_A_MODULE_FIRMWARE(api) \
        IWL_SC_A_GF4_A_FW_PRE "-" __stringify(api) ".ucode"
 
-/* NVM versions */
-#define IWL_GF_NVM_VERSION             0x0a1d
-
 const struct iwl_rf_cfg iwl_rf_gf = {
        .uhb_supported = true,
        .led_mode = IWL_LED_RF_STATE,
@@ -49,7 +46,6 @@ const struct iwl_rf_cfg iwl_rf_gf = {
                .ht40_bands = BIT(NL80211_BAND_2GHZ) |
                              BIT(NL80211_BAND_5GHZ),
        },
-       .nvm_ver = IWL_GF_NVM_VERSION,
        .nvm_type = IWL_NVM_EXT,
        .num_rbds = IWL_NUM_RBDS_HE,
        .ucode_api_min = IWL_GF_UCODE_API_MIN,
index 6cf187d92dbf63d052cb8ac374528ac16b2a2a6a..3c3a8d5702d85cb1f5113a8f7384cac26a80b11b 100644 (file)
@@ -1,7 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
 /*
  * Copyright (C) 2015-2017 Intel Deutschland GmbH
- * Copyright (C) 2018-2025 Intel Corporation
+ * Copyright (C) 2018-2026 Intel Corporation
  */
 #include "iwl-config.h"
 
@@ -40,9 +40,6 @@
 #define IWL_SC_A_HR_B_FW_MODULE_FIRMWARE(api)  \
        IWL_SC_A_HR_B_FW_PRE "-" __stringify(api) ".ucode"
 
-/* NVM versions */
-#define IWL_HR_NVM_VERSION             0x0a1d
-
 #define IWL_DEVICE_HR                                                  \
        .led_mode = IWL_LED_RF_STATE,                                   \
        .non_shared_ant = ANT_B,                                        \
@@ -54,7 +51,6 @@
                              BIT(NL80211_BAND_5GHZ),                   \
        },                                                              \
        .num_rbds = IWL_NUM_RBDS_HE,                                    \
-       .nvm_ver = IWL_HR_NVM_VERSION,                                  \
        .nvm_type = IWL_NVM_EXT,                                        \
        .ucode_api_min = IWL_HR_UCODE_API_MIN,                          \
        .ucode_api_max = IWL_HR_UCODE_API_MAX
index c02478b73057990288b31cec783193de1697a7c5..7a04cb120b1b23f5bc38c0feb272c73870bb820e 100644 (file)
@@ -1,11 +1,9 @@
 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
 /*
- * Copyright (C) 2025 Intel Corporation
+ * Copyright (C) 2025-2026 Intel Corporation
  */
 #include "iwl-config.h"
 
-#define IWL_PE_NVM_VERSION             0x0a1d
-
 #define IWL_DEVICE_PE                                                  \
        .ht_params = {                                                  \
                .stbc = true,                                           \
@@ -20,7 +18,6 @@
        .eht_supported = true,                                          \
        .uhr_supported = true,                                          \
        .num_rbds = IWL_NUM_RBDS_EHT,                                   \
-       .nvm_ver = IWL_PE_NVM_VERSION,                                  \
        .nvm_type = IWL_NVM_EXT
 
 const struct iwl_rf_cfg iwl_rf_pe = {
index b5803ea1eb782b26a8f78ccdbd61e093da838248..fa63a9a012645d133de7f822cf959928e27984a3 100644 (file)
@@ -1,12 +1,9 @@
 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
 /*
- * Copyright (C) 2025 Intel Corporation
+ * Copyright (C) 2025-2026 Intel Corporation
  */
 #include "iwl-config.h"
 
-/* NVM versions */
-#define IWL_WH_NVM_VERSION             0x0a1d
-
 #define IWL_DEVICE_WH                                                  \
        .ht_params = {                                                  \
                .stbc = true,                                           \
@@ -19,7 +16,6 @@
        .vht_mu_mimo_supported = true,                                  \
        .uhb_supported = true,                                          \
        .num_rbds = IWL_NUM_RBDS_EHT,                                   \
-       .nvm_ver = IWL_WH_NVM_VERSION,                                  \
        .nvm_type = IWL_NVM_EXT
 
 /* currently iwl_rf_wh/iwl_rf_wh_160mhz are just defines for the FM ones */
index 8e6efde3c64ba08f91d8b7d132cf7d0c5d6ef971..4532d31d5f8bea6b6493dbc66aff99796f44a452 100644 (file)
@@ -15,9 +15,6 @@
 /* Lowest firmware API version supported */
 #define IWL_SC_UCODE_API_MIN   100
 
-/* NVM versions */
-#define IWL_SC_NVM_VERSION             0x0a1d
-
 /* Memory offsets and lengths */
 #define IWL_SC_SMEM_OFFSET             0x400000
 #define IWL_SC_SMEM_LEN                        0xD0000