aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKalle Valo <kvalo@codeaurora.org>2020-07-22 09:37:30 +0300
committerKalle Valo <kvalo@codeaurora.org>2020-08-11 11:35:18 +0300
commit4933484477c12f27b64673f3e9e407537f0afea0 (patch)
tree5bb3d3e0b99f68204d53cfa9a3f759803ffd1800
parentc226c61f794e7d7c5da53d7e7ac9dc3c86fc6281 (diff)
HACK: ath11k: disable L1 to prevent device entering low power stateath11k-qca6390-bringup-202008110837
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
-rw-r--r--drivers/net/wireless/ath/ath11k/pci.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath11k/pci.c b/drivers/net/wireless/ath/ath11k/pci.c
index f0b42e6be684..6343f586b792 100644
--- a/drivers/net/wireless/ath/ath11k/pci.c
+++ b/drivers/net/wireless/ath/ath11k/pci.c
@@ -907,10 +907,17 @@ static void ath11k_pci_free_region(struct ath11k_pci *ab_pci)
static int ath11k_pci_power_up(struct ath11k_base *ab)
{
struct ath11k_pci *ab_pci = ath11k_pci_priv(ab);
+ u8 aspm;
int ret;
ath11k_pci_sw_reset(ab_pci->ab);
+ pci_read_config_byte(ab_pci->pdev, 0x80, &aspm);
+ pci_write_config_byte(ab_pci->pdev, 0x80, aspm & 0xfd);
+
+ ath11k_info(ab, "aspm 0x%x changed to 0x%x\n",
+ aspm, aspm & 0xfd);
+
ret = ath11k_mhi_start(ab_pci);
if (ret) {
ath11k_err(ab, "failed to start mhi: %d\n", ret);