aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKalle Valo <kvalo@codeaurora.org>2020-06-25 16:39:56 +0300
committerKalle Valo <kvalo@codeaurora.org>2020-06-26 14:45:18 +0300
commit32a8a23aa81167f019062fe16664de35e49398c1 (patch)
treec853d63e8f1791856d87c0a35fa720f3151ab119
parentb82ec63491bea62856c95f15a2ffa2e048d77c17 (diff)
HACK: ath11k: disable L1 to prevent device entering low power stateath11k-qca6390-bringup-202006261407
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 37091046b6ee..d666009cb90e 100644
--- a/drivers/net/wireless/ath/ath11k/pci.c
+++ b/drivers/net/wireless/ath/ath11k/pci.c
@@ -960,12 +960,19 @@ static void ath11k_pci_read_mhi_version(struct ath11k_base *ab)
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_read_mhi_version(ab);
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);