ath10k: rename ath10k_pci_hif_dump_area() to ath10k_pci_fw_crashed_dump()
authorKalle Valo <kvalo@qca.qualcomm.com>
Mon, 25 Aug 2014 05:37:37 +0000 (08:37 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Mon, 25 Aug 2014 08:23:55 +0000 (11:23 +0300)
Better to have a clear name for the function. While at it, clear up the title
for the register dump.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/pci.c

index 36c4f4130027d2dd3a4beb1de2a1d578dbf8dfc6..bc8c3e3345c1aa1443f9f1c3f1ab390d1d0ff1a6 100644 (file)
@@ -850,7 +850,7 @@ static void ath10k_pci_dump_registers(struct ath10k *ar,
 
        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)
                ath10k_err("[%02d]: 0x%08X 0x%08X 0x%08X 0x%08X\n",
                           i,
@@ -864,7 +864,7 @@ static void ath10k_pci_dump_registers(struct ath10k *ar,
                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;
        char uuid[50];
@@ -1811,7 +1811,7 @@ static void ath10k_pci_fw_interrupt_handler(struct ath10k *ar)
                                   fw_indicator & ~FW_IND_EVENT_PENDING);
 
                if (ar_pci->started) {
-                       ath10k_pci_hif_dump_area(ar);
+                       ath10k_pci_fw_crashed_dump(ar);
                } else {
                        /*
                         * Probable Target failure before we're prepared
@@ -2232,7 +2232,7 @@ static void ath10k_pci_early_irq_tasklet(unsigned long data)
        if (fw_ind & FW_IND_EVENT_PENDING) {
                ath10k_pci_write32(ar, FW_INDICATOR_ADDRESS,
                                   fw_ind & ~FW_IND_EVENT_PENDING);
-               ath10k_pci_hif_dump_area(ar);
+               ath10k_pci_fw_crashed_dump(ar);
        }
 
        ath10k_pci_enable_legacy_irq(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_pci_write32(ar, FW_INDICATOR_ADDRESS,
                                   val & ~FW_IND_EVENT_PENDING);
-               ath10k_pci_hif_dump_area(ar);
+               ath10k_pci_fw_crashed_dump(ar);
                return -ECOMM;
        }