wifi: ath12k: restore ASPM for supported hardwares only
authorAditya Kumar Singh <quic_adisi@quicinc.com>
Tue, 9 Jul 2024 05:58:17 +0000 (11:28 +0530)
committerKalle Valo <quic_kvalo@quicinc.com>
Wed, 7 Aug 2024 08:09:41 +0000 (11:09 +0300)
commit8be12629b428084be2610041d61b132074d334f6
tree7925795f4bcb143d3b67cb32954a8bb08285d0d5
parentf6ffe7f0184792c2f99aca6ae5b916683973d7d3
wifi: ath12k: restore ASPM for supported hardwares only

During PCI based hardware device start up, ASPM is disabled for all. And
once firmware is ready, it is restored back. However, not all hardwares
(for example QCN9274) supports ASPM. Hence there is a need to conditionally
restore ASPM back. Or else, for such hardwares, issue can be seen during
sending and receiving packets.

Introduce a new hardware param supports_aspm which identifies whether a
given hardware supports ASPM or not and then accordingly restore it.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1

Signed-off-by: Aditya Kumar Singh <quic_adisi@quicinc.com>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://patch.msgid.link/20240709055817.3371406-1-quic_adisi@quicinc.com
drivers/net/wireless/ath/ath12k/hw.c
drivers/net/wireless/ath/ath12k/hw.h
drivers/net/wireless/ath/ath12k/pci.c