diff options
author | Kalle Valo <kvalo@codeaurora.org> | 2020-07-22 09:37:30 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2020-07-23 21:59:11 +0300 |
commit | e112cced2e828a81bf0f77dc5c136f9174b49ca4 (patch) | |
tree | 91d62573cb473ee79d61c7161df28769440cad42 | |
parent | 11ba50f087673dc0feaf72ce42c92a513abdab0e (diff) |
HACK: ath11k: disable L1 to prevent device entering low power stateath11k-qca6390-bringup-202007231907
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 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); |