ath11k: Choose MSI config based on HW revision
authorManikanta Pubbisetty <quic_mpubbise@quicinc.com>
Fri, 1 Apr 2022 11:53:08 +0000 (14:53 +0300)
committerKalle Valo <quic_kvalo@quicinc.com>
Tue, 5 Apr 2022 08:05:48 +0000 (11:05 +0300)
commit8d06b8023ace027dc31a9cb3c85c3c8fe83289c5
treecc4e6a20cd5493b42c4581d280349e05583dee00
parentbbfdc5a751a634fcdaae669cc98b3d0e1dc0eedf
ath11k: Choose MSI config based on HW revision

Instead of selecting MSI config based on magic numbers, make
the assignment based on HW revision. The logic is similar to
the selection of HW params. This improves readability of the
code and also simplifies new additions.

Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-01720.1-QCAHSPSWPL_V1_V2_SILICONZ_LITE-1
Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.5.0.1-01100-QCAHKSWPL_SILICONZ-1
Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.4.0.1-00192-QCAHKSWPL_SILICONZ-1

Signed-off-by: Manikanta Pubbisetty <quic_mpubbise@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20220328055714.6449-4-quic_mpubbise@quicinc.com
drivers/net/wireless/ath/ath11k/pci.c
drivers/net/wireless/ath/ath11k/pci.h
drivers/net/wireless/ath/ath11k/pcic.c
drivers/net/wireless/ath/ath11k/pcic.h