ath11k: pci: fix hot reset stability issues
authorCarl Huang <cjhuang@codeaurora.org>
Thu, 10 Dec 2020 14:05:21 +0000 (16:05 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 12 Dec 2020 04:40:14 +0000 (06:40 +0200)
commitbabb0ced6acdbaa0b5e0721ec7b347fdbdfa0f6f
tree86afb2d78479577f3f0675a74ed86a60a734f837
parent43ed15e1ee01631687ed8b2e8595859802bc9f10
ath11k: pci: fix hot reset stability issues

For QCA6390, host needs to reset some registers before MHI power up to fix PCI
link unstable issue if hot reset happened. Also clear all pending interrupts
during power up.

Tested-on: QCA6390 hw2.0 PCI WLAN.HST.1.0.1-01740-QCAHSTSWPLZ_V2_TO_X86-1

Signed-off-by: Carl Huang <cjhuang@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1607609124-17250-4-git-send-email-kvalo@codeaurora.org
drivers/net/wireless/ath/ath11k/pci.c
drivers/net/wireless/ath/ath11k/pci.h