]> git.baikalelectronics.ru Git - kernel.git/commit
ath11k: Fix inaccessible debug registers
authorBaochen Qiang <bqiang@codeaurora.org>
Tue, 28 Sep 2021 11:00:44 +0000 (14:00 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 28 Sep 2021 13:33:41 +0000 (16:33 +0300)
commit8294b49bcdd1408152d823d348f3091d47502927
tree075a6ef6e1f231c13591a4449c302f1c73f4ea94
parentd0f0354f3c2997876765d9006c90dcbc1aadc562
ath11k: Fix inaccessible debug registers

Current code clears debug registers after SOC global reset performed
in ath11k_pci_sw_reset. However at that time those registers are
not accessible due to reset, thus they are actually not cleared at all.
For WCN6855, it may cause target fail to initialize. This issue can be
fixed by moving clear action ahead.

In addition, on some specific platforms, need to add delay to wait
those registers to become accessible.

Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-01720.1-QCAHSPSWPL_V1_V2_SILICONZ_LITE-1

Signed-off-by: Baochen Qiang <bqiang@codeaurora.org>
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210913180246.193388-3-jouni@codeaurora.org
drivers/net/wireless/ath/ath11k/pci.c