Skip to content

Commit 9ae4862

Browse files
jmberg-intellucacoelho
authored andcommitted
iwlwifi: dump CSR scratch from outer function
We shouldn't dump this twice if we have two TCMs, and it really doesn't belong to the TCM dump anyway, so move this out. Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: Luca Coelho <[email protected]> Link: https://lore.kernel.org/r/iwlwifi.20211210110539.b58a02f27512.Idbfbc430776a7abda0eb086215fb64f2c9307ac0@changeid Signed-off-by: Luca Coelho <[email protected]>
1 parent aece892 commit 9ae4862

File tree

1 file changed

+7
-7
lines changed
  • drivers/net/wireless/intel/iwlwifi/fw

1 file changed

+7
-7
lines changed

drivers/net/wireless/intel/iwlwifi/fw/dump.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -292,13 +292,6 @@ static void iwl_fwrt_dump_tcm_error_log(struct iwl_fw_runtime *fwrt)
292292
for (i = 0; i < ARRAY_SIZE(table.sw_status); i++)
293293
IWL_ERR(fwrt, "0x%08X | tcm SW status[%d]\n",
294294
table.sw_status[i], i);
295-
296-
if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_BZ) {
297-
u32 scratch = iwl_read32(trans, CSR_FUNC_SCRATCH);
298-
299-
IWL_ERR(fwrt, "Function Scratch status:\n");
300-
IWL_ERR(fwrt, "0x%08X | Func Scratch\n", scratch);
301-
}
302295
}
303296

304297
static void iwl_fwrt_dump_iml_error_log(struct iwl_fw_runtime *fwrt)
@@ -385,5 +378,12 @@ void iwl_fwrt_dump_error_logs(struct iwl_fw_runtime *fwrt)
385378
iwl_fwrt_dump_tcm_error_log(fwrt);
386379
iwl_fwrt_dump_iml_error_log(fwrt);
387380
iwl_fwrt_dump_fseq_regs(fwrt);
381+
382+
if (fwrt->trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_BZ) {
383+
u32 scratch = iwl_read32(fwrt->trans, CSR_FUNC_SCRATCH);
384+
385+
IWL_ERR(fwrt, "Function Scratch status:\n");
386+
IWL_ERR(fwrt, "0x%08X | Func Scratch\n", scratch);
387+
}
388388
}
389389
IWL_EXPORT_SYMBOL(iwl_fwrt_dump_error_logs);

0 commit comments

Comments
 (0)