OSDN Git Service

ath11k: pci: disable ASPM L0sLs before downloading firmware
authorCarl Huang <cjhuang@codeaurora.org>
Thu, 17 Dec 2020 15:22:10 +0000 (17:22 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 18 Dec 2020 09:03:50 +0000 (11:03 +0200)
commite9603f4bdcc04417f1c7b3585e63654819dc11f6
treed3fdddefa519edc1bab1980f02ef12faa36d8001
parentf6f92968e1e5a7a9d211faaebefc26ebe408dad7
ath11k: pci: disable ASPM L0sLs before downloading firmware

Sometimes QCA6390 doesn't switch to amss state as device enters
L1ss state, so disable L0sL1s during firmware downloading.
Driver recovers the ASPM to default value in start callback
or powerdown callback.

Tested-on: QCA6390 hw2.0 PCI WLAN.HST.1.0.1-01740-QCAHSTSWPLZ_V2_TO_X86-1

Signed-off-by: Carl Huang <cjhuang@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1608218530-15426-1-git-send-email-kvalo@codeaurora.org
drivers/net/wireless/ath/ath11k/pci.c
drivers/net/wireless/ath/ath11k/pci.h