]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: iwlwifi: mld: Add dump handler to iwl_mld
authorPagadala Yesu Anjaneyulu <pagadala.yesu.anjaneyulu@intel.com>
Wed, 11 Jun 2025 19:26:22 +0000 (22:26 +0300)
committerMiri Korenblit <miriam.rachel.korenblit@intel.com>
Wed, 25 Jun 2025 07:57:32 +0000 (10:57 +0300)
Implement a dump handler in the iwl_mld operation mode to
collect firmware dump upon trigger from trans layer.

Signed-off-by: Pagadala Yesu Anjaneyulu <pagadala.yesu.anjaneyulu@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250611222325.18ebf46690ce.Ia52941f761a446cb3e43cbe49d2b9a49fc15f4a8@changeid
drivers/net/wireless/intel/iwlwifi/mld/mld.c

index 8cdd960c52455d8bc846380b4895822d9819fd50..103912c4e4cc08f1542d49e54e13fbd60f3ccb04 100644 (file)
@@ -723,6 +723,17 @@ static void iwl_mld_device_powered_off(struct iwl_op_mode *op_mode)
 {}
 #endif
 
+static void iwl_mld_dump(struct iwl_op_mode *op_mode)
+{
+       struct iwl_mld *mld = IWL_OP_MODE_GET_MLD(op_mode);
+       struct iwl_fw_runtime *fwrt = &mld->fwrt;
+
+       if (!iwl_trans_fw_running(fwrt->trans))
+               return;
+
+       iwl_dbg_tlv_time_point(fwrt, IWL_FW_INI_TIME_POINT_USER_TRIGGER, NULL);
+}
+
 static const struct iwl_op_mode_ops iwl_mld_ops = {
        .start = iwl_op_mode_mld_start,
        .stop = iwl_op_mode_mld_stop,
@@ -737,6 +748,7 @@ static const struct iwl_op_mode_ops iwl_mld_ops = {
        .sw_reset = iwl_mld_sw_reset,
        .time_point = iwl_mld_time_point,
        .device_powered_off = pm_sleep_ptr(iwl_mld_device_powered_off),
+       .dump = iwl_mld_dump,
 };
 
 struct iwl_mld_mod_params iwlmld_mod_params = {