mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
Merge "cnss2: Add delay for pci link training retries"
This commit is contained in:
commit
f8be11edb0
1 changed files with 3 additions and 0 deletions
|
|
@ -78,6 +78,7 @@ static DEFINE_SPINLOCK(time_sync_lock);
|
|||
#define POWER_ON_RETRY_DELAY_MS 200
|
||||
|
||||
#define LINK_TRAINING_RETRY_MAX_TIMES 3
|
||||
#define LINK_TRAINING_RETRY_DELAY_MS 500
|
||||
|
||||
#define HANG_DATA_LENGTH 384
|
||||
#define HST_HANG_DATA_OFFSET ((3 * 1024 * 1024) - HANG_DATA_LENGTH)
|
||||
|
|
@ -777,6 +778,8 @@ retry:
|
|||
link_up ? "resume" : "suspend", ret);
|
||||
if (link_up && retry++ < LINK_TRAINING_RETRY_MAX_TIMES) {
|
||||
cnss_pr_dbg("Retry PCI link training #%d\n", retry);
|
||||
if (pci_priv->pci_link_down_ind)
|
||||
msleep(LINK_TRAINING_RETRY_DELAY_MS * retry);
|
||||
goto retry;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue