Commit 0e9848c0 authored by Kalle Valo's avatar Kalle Valo

ath10k: rename ath10k_pci_hif_dump_area() to ath10k_pci_fw_crashed_dump()

Better to have a clear name for the function. While at it, clear up the title
for the register dump.
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent 384914b2
...@@ -850,7 +850,7 @@ static void ath10k_pci_dump_registers(struct ath10k *ar, ...@@ -850,7 +850,7 @@ static void ath10k_pci_dump_registers(struct ath10k *ar,
BUILD_BUG_ON(REG_DUMP_COUNT_QCA988X % 4); BUILD_BUG_ON(REG_DUMP_COUNT_QCA988X % 4);
ath10k_err("target Register Dump\n"); ath10k_err("firmware register dump:\n");
for (i = 0; i < REG_DUMP_COUNT_QCA988X; i += 4) for (i = 0; i < REG_DUMP_COUNT_QCA988X; i += 4)
ath10k_err("[%02d]: 0x%08X 0x%08X 0x%08X 0x%08X\n", ath10k_err("[%02d]: 0x%08X 0x%08X 0x%08X 0x%08X\n",
i, i,
...@@ -864,7 +864,7 @@ static void ath10k_pci_dump_registers(struct ath10k *ar, ...@@ -864,7 +864,7 @@ static void ath10k_pci_dump_registers(struct ath10k *ar,
crash_data->registers[i] = cpu_to_le32(reg_dump_values[i]); crash_data->registers[i] = cpu_to_le32(reg_dump_values[i]);
} }
static void ath10k_pci_hif_dump_area(struct ath10k *ar) static void ath10k_pci_fw_crashed_dump(struct ath10k *ar)
{ {
struct ath10k_fw_crash_data *crash_data; struct ath10k_fw_crash_data *crash_data;
char uuid[50]; char uuid[50];
...@@ -1811,7 +1811,7 @@ static void ath10k_pci_fw_interrupt_handler(struct ath10k *ar) ...@@ -1811,7 +1811,7 @@ static void ath10k_pci_fw_interrupt_handler(struct ath10k *ar)
fw_indicator & ~FW_IND_EVENT_PENDING); fw_indicator & ~FW_IND_EVENT_PENDING);
if (ar_pci->started) { if (ar_pci->started) {
ath10k_pci_hif_dump_area(ar); ath10k_pci_fw_crashed_dump(ar);
} else { } else {
/* /*
* Probable Target failure before we're prepared * Probable Target failure before we're prepared
...@@ -2232,7 +2232,7 @@ static void ath10k_pci_early_irq_tasklet(unsigned long data) ...@@ -2232,7 +2232,7 @@ static void ath10k_pci_early_irq_tasklet(unsigned long data)
if (fw_ind & FW_IND_EVENT_PENDING) { if (fw_ind & FW_IND_EVENT_PENDING) {
ath10k_pci_write32(ar, FW_INDICATOR_ADDRESS, ath10k_pci_write32(ar, FW_INDICATOR_ADDRESS,
fw_ind & ~FW_IND_EVENT_PENDING); fw_ind & ~FW_IND_EVENT_PENDING);
ath10k_pci_hif_dump_area(ar); ath10k_pci_fw_crashed_dump(ar);
} }
ath10k_pci_enable_legacy_irq(ar); ath10k_pci_enable_legacy_irq(ar);
...@@ -2483,7 +2483,7 @@ static int ath10k_pci_wait_for_target_init(struct ath10k *ar) ...@@ -2483,7 +2483,7 @@ static int ath10k_pci_wait_for_target_init(struct ath10k *ar)
ath10k_warn("device has crashed during init\n"); ath10k_warn("device has crashed during init\n");
ath10k_pci_write32(ar, FW_INDICATOR_ADDRESS, ath10k_pci_write32(ar, FW_INDICATOR_ADDRESS,
val & ~FW_IND_EVENT_PENDING); val & ~FW_IND_EVENT_PENDING);
ath10k_pci_hif_dump_area(ar); ath10k_pci_fw_crashed_dump(ar);
return -ECOMM; return -ECOMM;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment