|
@@ -452,8 +452,12 @@ static int ath10k_pci_wake_wait(struct ath10k *ar)
|
|
int curr_delay = 5;
|
|
int curr_delay = 5;
|
|
|
|
|
|
while (tot_delay < PCIE_WAKE_TIMEOUT) {
|
|
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;
|
|
return 0;
|
|
|
|
+ }
|
|
|
|
|
|
udelay(curr_delay);
|
|
udelay(curr_delay);
|
|
tot_delay += curr_delay;
|
|
tot_delay += curr_delay;
|