wifi: iwlwifi: mvm: remove init_dbg module parameter
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Tue, 25 Jun 2024 16:51:12 +0000 (19:51 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 26 Jun 2024 08:35:14 +0000 (10:35 +0200)
This is no longer used

Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Link: https://patch.msgid.link/20240625194805.17a1484f2485.I095c7482ac517111081f8ff40312b48ffdd7ff94@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/fw.c
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
drivers/net/wireless/intel/iwlwifi/mvm/ops.c

index 52102a2..1f27ed9 100644 (file)
@@ -828,7 +828,7 @@ remove_notif:
        iwl_remove_notification(&mvm->notif_wait, &calib_wait);
 out:
        mvm->rfkill_safe_init_done = false;
-       if (iwlmvm_mod_params.init_dbg && !mvm->nvm_data) {
+       if (!mvm->nvm_data) {
                /* we want to debug INIT and we have no NVM - fake */
                mvm->nvm_data = kzalloc(sizeof(struct iwl_nvm_data) +
                                        sizeof(struct ieee80211_channel) +
@@ -1357,9 +1357,6 @@ static int iwl_mvm_load_rt_fw(struct iwl_mvm *mvm)
 
        if (ret) {
                IWL_ERR(mvm, "Failed to run INIT ucode: %d\n", ret);
-
-               if (iwlmvm_mod_params.init_dbg)
-                       return 0;
                return ret;
        }
 
@@ -1598,8 +1595,7 @@ int iwl_mvm_up(struct iwl_mvm *mvm)
        IWL_DEBUG_INFO(mvm, "RT uCode started.\n");
        return 0;
  error:
-       if (!iwlmvm_mod_params.init_dbg || !ret)
-               iwl_mvm_stop_device(mvm);
+       iwl_mvm_stop_device(mvm);
        return ret;
 }
 
index 8eeb405..f2d0c6f 100644 (file)
@@ -83,14 +83,9 @@ extern const struct ieee80211_ops iwl_mvm_mld_hw_ops;
 
 /**
  * struct iwl_mvm_mod_params - module parameters for iwlmvm
- * @init_dbg: if true, then the NIC won't be stopped if the INIT fw asserted.
- *     We will register to mac80211 to have testmode working. The NIC must not
- *     be up'ed after the INIT fw asserted. This is useful to be able to use
- *     proprietary tools over testmode to debug the INIT fw.
  * @power_scheme: one of enum iwl_power_scheme
  */
 struct iwl_mvm_mod_params {
-       bool init_dbg;
        int power_scheme;
 };
 extern struct iwl_mvm_mod_params iwlmvm_mod_params;
index 008fe5f..df0de85 100644 (file)
@@ -41,12 +41,8 @@ static const struct iwl_op_mode_ops iwl_mvm_ops_mq;
 
 struct iwl_mvm_mod_params iwlmvm_mod_params = {
        .power_scheme = IWL_POWER_SCHEME_BPS,
-       /* rest of fields are 0 by default */
 };
 
-module_param_named(init_dbg, iwlmvm_mod_params.init_dbg, bool, 0444);
-MODULE_PARM_DESC(init_dbg,
-                "set to true to debug an ASSERT in INIT fw (default: false");
 module_param_named(power_scheme, iwlmvm_mod_params.power_scheme, int, 0444);
 MODULE_PARM_DESC(power_scheme,
                 "power management scheme: 1-active, 2-balanced, 3-low power, default: 2");
@@ -864,8 +860,7 @@ get_nvm_from_fw:
                ret = iwl_mvm_init_mcc(mvm);
        }
 
-       if (!iwlmvm_mod_params.init_dbg || !ret)
-               iwl_mvm_stop_device(mvm);
+       iwl_mvm_stop_device(mvm);
 
        mutex_unlock(&mvm->mutex);
        wiphy_unlock(mvm->hw->wiphy);
@@ -1500,8 +1495,6 @@ iwl_op_mode_mvm_start(struct iwl_trans *trans, const struct iwl_cfg *cfg,
        iwl_fw_flush_dumps(&mvm->fwrt);
        iwl_fw_runtime_free(&mvm->fwrt);
 
-       if (iwlmvm_mod_params.init_dbg)
-               return op_mode;
        iwl_phy_db_free(mvm->phy_db);
        kfree(mvm->scan_cmd);
        iwl_trans_op_mode_leave(trans);