summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath10k/pci.c
diff options
context:
space:
mode:
authorMaharaja Kennadyrajan <c_mkenna@qti.qualcomm.com>2015-10-06 15:19:28 +0300
committerKalle Valo <kvalo@qca.qualcomm.com>2015-10-09 11:33:50 +0300
commit39b91b8144e028cbe383548f76c1f8cdb7977532 (patch)
treeff57532ab493b559e581afece5228afd2303911f /drivers/net/wireless/ath/ath10k/pci.c
parent683b95e8071603b4e945cb26dcae0308457ec478 (diff)
downloadlinux-0-day-39b91b8144e028cbe383548f76c1f8cdb7977532.tar.gz
linux-0-day-39b91b8144e028cbe383548f76c1f8cdb7977532.tar.xz
ath10k: increase pci wakeup timeout to 30 ms
It is noticed that pci wakeup time is exceeding current timeout (10ms) randomly which is tested on QCA988x. So, the wake up time is increased to 30 ms and added debug prints to log total timeout. Signed-off-by: Maharaja Kennadyrajan <c_mkenna@qti.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/pci.c')
-rw-r--r--drivers/net/wireless/ath/ath10k/pci.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c
index 61df93e2e1c95..7af39118b1f4a 100644
--- a/drivers/net/wireless/ath/ath10k/pci.c
+++ b/drivers/net/wireless/ath/ath10k/pci.c
@@ -452,8 +452,12 @@ static int ath10k_pci_wake_wait(struct ath10k *ar)
int curr_delay = 5;
while (tot_delay < PCIE_WAKE_TIMEOUT) {
- if (ath10k_pci_is_awake(ar))
+ if (ath10k_pci_is_awake(ar)) {
+ if (tot_delay > PCIE_WAKE_LATE_US)
+ ath10k_warn(ar, "device wakeup took %d ms which is unusally long, otherwise it works normally.\n",
+ tot_delay / 1000);
return 0;
+ }
udelay(curr_delay);
tot_delay += curr_delay;