diff options
author | Michal Kazior <michal.kazior@tieto.com> | 2014-05-14 09:56:16 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2014-05-16 09:49:36 -0400 |
commit | 1a4ab28fc0baccbc8d78fa9fa22821e108ae4f4a (patch) | |
tree | ab440785e557d94818e1acb37e194e7d9d8f11f6 | |
parent | 61c95cea66ae78502c19bfe72246769d980144c9 (diff) |
ath10k: enable early device dumps
This can be useful for early initialization
debugging, i.e. ROM crashes.
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
-rw-r--r-- | drivers/net/wireless/ath/ath10k/pci.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c index 21a32ad4c09c..33e87557a7dd 100644 --- a/drivers/net/wireless/ath/ath10k/pci.c +++ b/drivers/net/wireless/ath/ath10k/pci.c | |||
@@ -2241,10 +2241,7 @@ static void ath10k_pci_early_irq_tasklet(unsigned long data) | |||
2241 | if (fw_ind & FW_IND_EVENT_PENDING) { | 2241 | if (fw_ind & FW_IND_EVENT_PENDING) { |
2242 | ath10k_pci_write32(ar, FW_INDICATOR_ADDRESS, | 2242 | ath10k_pci_write32(ar, FW_INDICATOR_ADDRESS, |
2243 | fw_ind & ~FW_IND_EVENT_PENDING); | 2243 | fw_ind & ~FW_IND_EVENT_PENDING); |
2244 | 2244 | ath10k_pci_hif_dump_area(ar); | |
2245 | /* Some structures are unavailable during early boot or at | ||
2246 | * driver teardown so just print that the device has crashed. */ | ||
2247 | ath10k_warn("device crashed - no diagnostics available\n"); | ||
2248 | } | 2245 | } |
2249 | 2246 | ||
2250 | ath10k_pci_sleep(ar); | 2247 | ath10k_pci_sleep(ar); |
@@ -2521,6 +2518,9 @@ static int ath10k_pci_wait_for_target_init(struct ath10k *ar) | |||
2521 | 2518 | ||
2522 | if (val & FW_IND_EVENT_PENDING) { | 2519 | if (val & FW_IND_EVENT_PENDING) { |
2523 | ath10k_warn("device has crashed during init\n"); | 2520 | ath10k_warn("device has crashed during init\n"); |
2521 | ath10k_pci_write32(ar, FW_INDICATOR_ADDRESS, | ||
2522 | val & ~FW_IND_EVENT_PENDING); | ||
2523 | ath10k_pci_hif_dump_area(ar); | ||
2524 | ret = -ECOMM; | 2524 | ret = -ECOMM; |
2525 | goto out; | 2525 | goto out; |
2526 | } | 2526 | } |