]> git.baikalelectronics.ru Git - kernel.git/commit
ath11k: pci: check TCSR_SOC_HW_VERSION
authorKalle Valo <kvalo@codeaurora.org>
Tue, 29 Sep 2020 17:15:32 +0000 (20:15 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 1 Oct 2020 19:31:01 +0000 (22:31 +0300)
commitaae91cfabe467a6d556e3076902fc18cf5b90fc4
tree0042d34587eab96a153166d1fef4d3eb2b79cc03
parent1a1998b482be96b2ee3cd5001238613bf76d3c78
ath11k: pci: check TCSR_SOC_HW_VERSION

There are different versions of QCA6390. Check TCSR_SOC_HW_VERSION to make sure
that the device is hw2.0, all the rest are unsupported.

This needs to be checked after ath11k_pci_claim() so move the whole switch choosing hw_ver.

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

Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1601399736-3210-5-git-send-email-kvalo@codeaurora.org
drivers/net/wireless/ath/ath11k/pci.c