]> git.baikalelectronics.ru Git - kernel.git/commit
ath11k: Add hw-restart option to simulate_fw_crash
authorWen Gong <quic_wgong@quicinc.com>
Mon, 21 Mar 2022 11:17:03 +0000 (13:17 +0200)
committerKalle Valo <quic_kvalo@quicinc.com>
Wed, 23 Mar 2022 08:56:58 +0000 (10:56 +0200)
commitcb64373386f6ce63e8a9312ec71bd2945b07654d
tree1e7b44ca858617de5186e4f58de7ce3259ef22f8
parent47e41898b4a6e650cba108ffbb48b15c1f8e3683
ath11k: Add hw-restart option to simulate_fw_crash

Add hw-restart to directly restart wlan. Like UTF mode start it will
restart hardware and download firmware again.

Usage:
1. Run command:
   echo hw-restart > /sys/kernel/debug/ath11k/qca6390\ hw2.0/simulate_fw_crash
   echo hw-restart > /sys/kernel/debug/ath11k/wcn6855\ hw2.0/simulate_fw_crash
2. wlan will be restart and do recovery process and success.

Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03003-QCAHSPSWPL_V1_V2_SILICONZ_LITE-2

Signed-off-by: Wen Gong <quic_wgong@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20220228064606.8981-4-quic_wgong@quicinc.com
drivers/net/wireless/ath/ath11k/debugfs.c