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)
commit18ac1665e78575a5148b2bd2c90749c2bcbf135a
tree0042d34587eab96a153166d1fef4d3eb2b79cc03
parent2626c269702e04bdcaaeac62ac8089281520b5ce
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