mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
cnss2: Extend idle restart timeout
WLAN driver has its own watchdog timer for idle restart, so extend idle restart timeout in platform driver to avoid timing out before WLAN driver. Change-Id: I4bab19fce7b30c59e9ecc0f0a8923a3693fdec12 Signed-off-by: Yue Ma <yuem@codeaurora.org>
This commit is contained in:
parent
59049c4986
commit
dcf8badf55
1 changed files with 3 additions and 1 deletions
|
|
@ -32,6 +32,7 @@
|
|||
#define FW_ASSERT_TIMEOUT 5000
|
||||
#define CNSS_EVENT_PENDING 2989
|
||||
#define COLD_BOOT_CAL_SHUTDOWN_DELAY_MS 50
|
||||
#define WLAN_WD_TIMEOUT_MS 60000
|
||||
|
||||
#define CNSS_QUIRKS_DEFAULT BIT(DISABLE_IO_COHERENCY)
|
||||
#ifdef CONFIG_CNSS_EMULATION
|
||||
|
|
@ -649,7 +650,8 @@ int cnss_idle_restart(struct device *dev)
|
|||
|
||||
timeout = cnss_get_boot_timeout(dev);
|
||||
ret = wait_for_completion_timeout(&plat_priv->power_up_complete,
|
||||
msecs_to_jiffies(timeout) << 2);
|
||||
msecs_to_jiffies((timeout << 1) +
|
||||
WLAN_WD_TIMEOUT_MS));
|
||||
if (!ret) {
|
||||
cnss_pr_err("Timeout waiting for idle restart to complete\n");
|
||||
ret = -ETIMEDOUT;
|
||||
|
|
|
|||
Loading…
Reference in a new issue