Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions drivers/net/wireless/ath/ath12k/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1770,6 +1770,8 @@ static int ath12k_core_panic_handler(struct notifier_block *nb,
struct ath12k_base *ab = container_of(nb, struct ath12k_base,
panic_nb);

set_bit(ATH12K_FLAG_PANIC_PROCESSING, &ab->dev_flags);

return ath12k_hif_panic_handler(ab);
}

Expand Down
1 change: 1 addition & 0 deletions drivers/net/wireless/ath/ath12k/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ enum ath12k_dev_flags {
ATH12K_FLAG_QMI_FW_READY_COMPLETE,
ATH12K_FLAG_FTM_SEGMENTED,
ATH12K_FLAG_FIXED_MEM_REGION,
ATH12K_FLAG_PANIC_PROCESSING,
};

struct ath12k_tx_conf {
Expand Down
6 changes: 4 additions & 2 deletions drivers/net/wireless/ath/ath12k/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1157,7 +1157,8 @@ u32 ath12k_pci_read32(struct ath12k_base *ab, u32 offset)
* need to wakeup MHI to access.
*/
if (test_bit(ATH12K_PCI_FLAG_INIT_DONE, &ab_pci->flags) &&
offset >= ACCESS_ALWAYS_OFF && ab_pci->pci_ops->wakeup)
offset >= ACCESS_ALWAYS_OFF && ab_pci->pci_ops->wakeup &&
!test_bit(ATH12K_FLAG_PANIC_PROCESSING, &ab->dev_flags))
ret = ab_pci->pci_ops->wakeup(ab);

if (offset < WINDOW_START) {
Expand Down Expand Up @@ -1205,7 +1206,8 @@ void ath12k_pci_write32(struct ath12k_base *ab, u32 offset, u32 value)
* need to wakeup MHI to access.
*/
if (test_bit(ATH12K_PCI_FLAG_INIT_DONE, &ab_pci->flags) &&
offset >= ACCESS_ALWAYS_OFF && ab_pci->pci_ops->wakeup)
offset >= ACCESS_ALWAYS_OFF && ab_pci->pci_ops->wakeup &&
!test_bit(ATH12K_FLAG_PANIC_PROCESSING, &ab->dev_flags))
ret = ab_pci->pci_ops->wakeup(ab);

if (offset < WINDOW_START) {
Expand Down