mac80211: ath11k: sync with ath-next
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / ath11k / 0013-wifi-ath11k-mhi-add-a-warning-message-for-MHI_CB_EE_.patch
1 From 4a93b554cf9fa64faa7cf164c0d32fc3ce67108b Mon Sep 17 00:00:00 2001
2 From: Arowa Suliman <arowa@chromium.org>
3 Date: Sat, 26 Aug 2023 08:42:42 +0300
4 Subject: [PATCH] wifi: ath11k: mhi: add a warning message for MHI_CB_EE_RDDM
5 crash
6
7 Currently, the ath11k driver does not print a crash signature when a
8 MHI_CB_EE_RDDM crash happens. Checked by triggering a simulated crash using the
9 command and checking dmesg for logs:
10
11 echo assert > /sys/kernel/debug/ath11k/../simulate_fw_crash
12
13 Add a warning when firmware crash MHI_CB_EE_RDDM happens.
14
15 Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.23
16
17 Signed-off-by: Arowa Suliman <arowa@chromium.org>
18 Reviewed-by: Jeff Johnson <quic_jjohnson@quicinc.com>
19 Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
20 Link: https://lore.kernel.org/r/20230714001126.463127-1-arowa@chromium.org
21 ---
22 drivers/net/wireless/ath/ath11k/mhi.c | 1 +
23 1 file changed, 1 insertion(+)
24
25 --- a/drivers/net/wireless/ath/ath11k/mhi.c
26 +++ b/drivers/net/wireless/ath/ath11k/mhi.c
27 @@ -333,6 +333,7 @@ static void ath11k_mhi_op_status_cb(stru
28 ath11k_warn(ab, "firmware crashed: MHI_CB_SYS_ERROR\n");
29 break;
30 case MHI_CB_EE_RDDM:
31 + ath11k_warn(ab, "firmware crashed: MHI_CB_EE_RDDM\n");
32 if (!(test_bit(ATH11K_FLAG_UNREGISTERING, &ab->dev_flags)))
33 queue_work(ab->workqueue_aux, &ab->reset_work);
34 break;