aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
diff options
context:
space:
mode:
authorShahar S Matityahu <shahar.s.matityahu@intel.com>2018-11-12 06:27:51 -0500
committerLuca Coelho <luciano.coelho@intel.com>2019-02-04 05:27:19 -0500
commit700b3799b398d00320f40ef1a40d3fe341f98678 (patch)
treeedfda78230b08cb3bb8743036e7d7427d1aeefec /drivers/net/wireless/intel/iwlwifi/mvm/ops.c
parent6032c062723ce5a23eccb7d2bf8c0a2985424f27 (diff)
iwlwifi: Fix pre operational dumping flows
There are several dumping flows in the driver in case of a fail prior to operational. In some cases we get 2 dumps while in others we get none. Fix this by uniting the different flows. Add a different dump type to driver triggered dumps in case we want a dump but did not got assert, and make all dumping go through iwl_fw_dbg_collect_desc to avoid multiple dumps. Signed-off-by: Shahar S Matityahu <shahar.s.matityahu@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/ops.c')
-rw-r--r--drivers/net/wireless/intel/iwlwifi/mvm/ops.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
index de288962773e..ad816007e546 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
@@ -817,6 +817,8 @@ iwl_op_mode_mvm_start(struct iwl_trans *trans, const struct iwl_cfg *cfg,
817 mutex_lock(&mvm->mutex); 817 mutex_lock(&mvm->mutex);
818 iwl_mvm_ref(mvm, IWL_MVM_REF_INIT_UCODE); 818 iwl_mvm_ref(mvm, IWL_MVM_REF_INIT_UCODE);
819 err = iwl_run_init_mvm_ucode(mvm, true); 819 err = iwl_run_init_mvm_ucode(mvm, true);
820 if (err)
821 iwl_fw_dbg_error_collect(&mvm->fwrt, FW_DBG_TRIGGER_DRIVER);
820 if (!iwlmvm_mod_params.init_dbg || !err) 822 if (!iwlmvm_mod_params.init_dbg || !err)
821 iwl_mvm_stop_device(mvm); 823 iwl_mvm_stop_device(mvm);
822 iwl_mvm_unref(mvm, IWL_MVM_REF_INIT_UCODE); 824 iwl_mvm_unref(mvm, IWL_MVM_REF_INIT_UCODE);