wifi: ath11k: Split PCI write/read functions
authorBaochen Qiang <quic_bqiang@quicinc.com>
Wed, 7 Sep 2022 08:31:13 +0000 (11:31 +0300)
committerKalle Valo <quic_kvalo@quicinc.com>
Sat, 10 Sep 2022 06:26:18 +0000 (09:26 +0300)
commit90aad48eb56f9191e2b30e27f74e2ac97ad93012
treecda2d22691b43912b91eeba124a13df0e8d07fe2
parent36893e45b1922f1c3ad91301724fafc4798f1e5f
wifi: ath11k: Split PCI write/read functions

ath11k_pcic_write32/read32 tries to do wake up before doing actual
write/read work, which means each time a u32 is written/read, wake
up is performed. This is not necessary in case where we do a
large amount of write/read, because only one time of wake up is needed.
So split each one into two parts, the first part does wake up and
release, and the second one does actual write/read work.

Tested-on: QCA6390 hw2.0 PCI WLAN.HST.1.0.1-01740-QCAHSTSWPLZ_V2_TO_X86-1
Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-01720.1-QCAHSPSWPL_V1_V2_SILICONZ_LITE-1

Signed-off-by: Baochen Qiang <quic_bqiang@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20220802075533.1744-2-quic_bqiang@quicinc.com
drivers/net/wireless/ath/ath11k/pcic.c