]> 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)
commit3d5865d634e422bdb6fcceacbe0ffdf697684f61
tree0042d34587eab96a153166d1fef4d3eb2b79cc03
parentb4e8e712f4d33f6cfe6d3a8263dd4d21732ae09c
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