diff options
author | Kalle Valo <kvalo@qca.qualcomm.com> | 2014-08-25 01:37:37 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2014-08-25 04:23:55 -0400 |
commit | 0e9848c0ec5a8f57e98264ae532b6adcaeecac3b (patch) | |
tree | 1e4f5415b38c5286283d38416a8da147e2a8bc2e /drivers/net/wireless/ath/ath10k/pci.c | |
parent | 384914b2e5566dfce25f3f38d992708a9ef6f51b (diff) |
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: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/pci.c')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/pci.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c index 36c4f4130027..bc8c3e3345c1 100644 --- a/drivers/net/wireless/ath/ath10k/pci.c +++ b/drivers/net/wireless/ath/ath10k/pci.c | |||
@@ -850,7 +850,7 @@ static void ath10k_pci_dump_registers(struct ath10k *ar, | |||
850 | 850 | ||
851 | BUILD_BUG_ON(REG_DUMP_COUNT_QCA988X % 4); | 851 | BUILD_BUG_ON(REG_DUMP_COUNT_QCA988X % 4); |
852 | 852 | ||
853 | ath10k_err("target Register Dump\n"); | 853 | ath10k_err("firmware register dump:\n"); |
854 | for (i = 0; i < REG_DUMP_COUNT_QCA988X; i += 4) | 854 | for (i = 0; i < REG_DUMP_COUNT_QCA988X; i += 4) |
855 | ath10k_err("[%02d]: 0x%08X 0x%08X 0x%08X 0x%08X\n", | 855 | ath10k_err("[%02d]: 0x%08X 0x%08X 0x%08X 0x%08X\n", |
856 | i, | 856 | i, |
@@ -864,7 +864,7 @@ static void ath10k_pci_dump_registers(struct ath10k *ar, | |||
864 | crash_data->registers[i] = cpu_to_le32(reg_dump_values[i]); | 864 | crash_data->registers[i] = cpu_to_le32(reg_dump_values[i]); |
865 | } | 865 | } |
866 | 866 | ||
867 | static void ath10k_pci_hif_dump_area(struct ath10k *ar) | 867 | static void ath10k_pci_fw_crashed_dump(struct ath10k *ar) |
868 | { | 868 | { |
869 | struct ath10k_fw_crash_data *crash_data; | 869 | struct ath10k_fw_crash_data *crash_data; |
870 | char uuid[50]; | 870 | char uuid[50]; |
@@ -1811,7 +1811,7 @@ static void ath10k_pci_fw_interrupt_handler(struct ath10k *ar) | |||
1811 | fw_indicator & ~FW_IND_EVENT_PENDING); | 1811 | fw_indicator & ~FW_IND_EVENT_PENDING); |
1812 | 1812 | ||
1813 | if (ar_pci->started) { | 1813 | if (ar_pci->started) { |
1814 | ath10k_pci_hif_dump_area(ar); | 1814 | ath10k_pci_fw_crashed_dump(ar); |
1815 | } else { | 1815 | } else { |
1816 | /* | 1816 | /* |
1817 | * Probable Target failure before we're prepared | 1817 | * Probable Target failure before we're prepared |
@@ -2232,7 +2232,7 @@ static void ath10k_pci_early_irq_tasklet(unsigned long data) | |||
2232 | if (fw_ind & FW_IND_EVENT_PENDING) { | 2232 | if (fw_ind & FW_IND_EVENT_PENDING) { |
2233 | ath10k_pci_write32(ar, FW_INDICATOR_ADDRESS, | 2233 | ath10k_pci_write32(ar, FW_INDICATOR_ADDRESS, |
2234 | fw_ind & ~FW_IND_EVENT_PENDING); | 2234 | fw_ind & ~FW_IND_EVENT_PENDING); |
2235 | ath10k_pci_hif_dump_area(ar); | 2235 | ath10k_pci_fw_crashed_dump(ar); |
2236 | } | 2236 | } |
2237 | 2237 | ||
2238 | ath10k_pci_enable_legacy_irq(ar); | 2238 | ath10k_pci_enable_legacy_irq(ar); |
@@ -2483,7 +2483,7 @@ static int ath10k_pci_wait_for_target_init(struct ath10k *ar) | |||
2483 | ath10k_warn("device has crashed during init\n"); | 2483 | ath10k_warn("device has crashed during init\n"); |
2484 | ath10k_pci_write32(ar, FW_INDICATOR_ADDRESS, | 2484 | ath10k_pci_write32(ar, FW_INDICATOR_ADDRESS, |
2485 | val & ~FW_IND_EVENT_PENDING); | 2485 | val & ~FW_IND_EVENT_PENDING); |
2486 | ath10k_pci_hif_dump_area(ar); | 2486 | ath10k_pci_fw_crashed_dump(ar); |
2487 | return -ECOMM; | 2487 | return -ECOMM; |
2488 | } | 2488 | } |
2489 | 2489 | ||