ath10k: add support for firmware crash recovery on SDIO chip
authorWen Gong <wgong@codeaurora.org>
Wed, 22 May 2019 06:32:56 +0000 (14:32 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 25 Jun 2019 12:52:30 +0000 (15:52 +0300)
commit0f132ba7ac645b31d3660b97fb142d46566286d2
tree86ed879dab5e8f658aa198e2b59dd31ade9a202d
parent9d740d6380e5030f356e2811b14fe45684c793b1
ath10k: add support for firmware crash recovery on SDIO chip

The command to simulate firmware crash:
echo soft > /sys/kernel/debug/ieee80211/phy0/ath10k/simulate_fw_crash

It will send WMI_FORCE_FW_HANG_ASSERT to firmware, then it will trigger
CPU interrupt status register for SDIO chip, ath10k driver need to
configure it while enable SDIO interrupt, otherwise ath10k driver will
not get the assert error info.

After this change, it will success for simulate firmware crash.

Tested with QCA6174 SDIO with firmware
WLAN.RMH.4.4.1-00007-QCARMSWP-1.

Signed-off-by: Wen Gong <wgong@codeaurora.org>
Tested-by: Claire Chang <tientzu@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/hw.h
drivers/net/wireless/ath/ath10k/sdio.c