Skip to content

Commit fc46e1b

Browse files
author
Kalle Valo
committed
ath11k: mhi: print a warning if firmware crashed
There was no way to detect if the firmware crashed so add a warning. At the moment the firmware is not restarted or anything like that, so when this happens ath11k modules need to be reloaded. Tested-on: QCA6390 hw2.0 PCI WLAN.HST.1.0.1-01740-QCAHSTSWPLZ_V2_TO_X86-1 Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 57449b0 commit fc46e1b

File tree

1 file changed

+9
-0
lines changed
  • drivers/net/wireless/ath/ath11k

1 file changed

+9
-0
lines changed

drivers/net/wireless/ath/ath11k/mhi.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,15 @@ static void ath11k_mhi_op_runtime_put(struct mhi_controller *mhi_cntrl)
190190
static void ath11k_mhi_op_status_cb(struct mhi_controller *mhi_cntrl,
191191
enum mhi_callback cb)
192192
{
193+
struct ath11k_base *ab = dev_get_drvdata(mhi_cntrl->cntrl_dev);
194+
195+
switch (cb) {
196+
case MHI_CB_SYS_ERROR:
197+
ath11k_warn(ab, "firmware crashed: MHI_CB_SYS_ERROR\n");
198+
break;
199+
default:
200+
break;
201+
}
193202
}
194203

195204
static int ath11k_mhi_op_read_reg(struct mhi_controller *mhi_cntrl,

0 commit comments

Comments
 (0)