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:
Yue Ma 2020-02-05 12:28:39 -08:00
commit dcf8badf55

View file

@ -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;