diff options
author | Kalle Valo <kvalo@codeaurora.org> | 2020-08-18 17:26:25 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2020-09-22 18:37:20 +0300 |
commit | e0789ea5aef36ddf35f38f3d16162bcdb5f6bcea (patch) | |
tree | 6a27400b7bd7727d0c50d03abfae97b317a6082a | |
parent | a0b49cd069ca031fa303aa7b73deba63617d2256 (diff) |
HACK: ath11k: disable L1 to prevent device entering low power stateath11k-qca6390-bringup-202009221550
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
-rw-r--r-- | drivers/net/wireless/ath/ath11k/pci.c | 7 |
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 24c8351aecd5..3b7ebe61f0a9 100644 --- a/drivers/net/wireless/ath/ath11k/pci.c +++ b/drivers/net/wireless/ath/ath11k/pci.c @@ -729,10 +729,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); |