]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: iwlwifi: iwl_fw_error_collect() is always called sync
authorJohannes Berg <johannes.berg@intel.com>
Fri, 27 Dec 2024 08:01:12 +0000 (10:01 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 13 Jan 2025 14:26:39 +0000 (15:26 +0100)
Since iwl_fw_error_collect() is now always called with the sync
argument set to true, to collect data synchronously, remove the
argument from it entirely.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20241227095718.08f515513e88.I780a557743ca7f029f46a1cc75d0799542e39d83@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/dbg.h
drivers/net/wireless/intel/iwlwifi/mvm/ops.c

index f4803b55adb9172ecdcb93dabd0a2f7925d186e9..87998374f459e763acbf97ed2af4ed18169604f8 100644 (file)
@@ -287,7 +287,7 @@ static inline void iwl_fw_umac_set_alive_err_table(struct iwl_trans *trans,
                trans->dbg.umac_error_event_table = umac_error_event_table;
 }
 
-static inline void iwl_fw_error_collect(struct iwl_fw_runtime *fwrt, bool sync)
+static inline void iwl_fw_error_collect(struct iwl_fw_runtime *fwrt)
 {
        enum iwl_fw_ini_time_point tp_id;
 
@@ -303,7 +303,7 @@ static inline void iwl_fw_error_collect(struct iwl_fw_runtime *fwrt, bool sync)
                tp_id = IWL_FW_INI_TIME_POINT_FW_ASSERT;
        }
 
-       _iwl_dbg_tlv_time_point(fwrt, tp_id, NULL, sync);
+       iwl_dbg_tlv_time_point_sync(fwrt, tp_id, NULL);
 }
 
 static inline void iwl_fwrt_update_fw_versions(struct iwl_fw_runtime *fwrt,
index 08c59df593b2462b153d743a8c78c68ca1045cf3..7250c85fb6e6c69c0ca583a496b381b2bcb52d7c 100644 (file)
@@ -2043,11 +2043,11 @@ static void iwl_mvm_dump_error(struct iwl_op_mode *op_mode,
        /* if we come in from opmode we have the mutex held */
        if (mode->context == IWL_ERR_CONTEXT_FROM_OPMODE) {
                lockdep_assert_held(&mvm->mutex);
-               iwl_fw_error_collect(&mvm->fwrt, true);
+               iwl_fw_error_collect(&mvm->fwrt);
        } else {
                mutex_lock(&mvm->mutex);
                if (mode->context != IWL_ERR_CONTEXT_ABORT)
-                       iwl_fw_error_collect(&mvm->fwrt, true);
+                       iwl_fw_error_collect(&mvm->fwrt);
                mutex_unlock(&mvm->mutex);
        }
 }