]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: fix unsupported chip reset debugs file write
authorYingying Tang <yintang@codeaurora.org>
Fri, 14 Feb 2020 08:51:18 +0000 (16:51 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 11 Mar 2020 16:41:11 +0000 (18:41 +0200)
commit22f6cb31135462a43fae7006c47d5f06b3ce1829
tree51c3b30c65bbf1e18f636bf08ce88ffdc48623a7
parentfce68be6c08293af146beddd42ad6471f23c1076
ath10k: fix unsupported chip reset debugs file write

Before this change, after writing "warm_hw_reset" debugfs file, host
will send chip reset command to FW even though FW do not support this
service getting a warning print.

Though there is no FW impact before this change, this patch restricts
chip reset command sent to FW only if FW advertises the support via WMI
service bit.

Removed the redundant check and ath10k_warn() print as well.

New version FW will report chip reset service bit to host. Host allow user
to trigger WLAN chip reset only when fw report this service bit.

For older NON-TLV FW, since it do not report chip reset service bit, host
will not send chip reset command. For older TLV FW, since it report chip
reset service bit, host will send chip reset command.

Tested HW:  QCA9984, WCN3990

QCA9984 FW version: WLAN.BL.3.9.0.2-00042-S-1

Signed-off-by: Yingying Tang <yintang@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/debug.c
drivers/net/wireless/ath/ath10k/wmi.h