Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 503bbdb9 authored by Yue Ma's avatar Yue Ma
Browse files

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: default avatarYue Ma <yuem@codeaurora.org>
parent a2d6c83b
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -32,6 +32,7 @@
#define FW_ASSERT_TIMEOUT		5000
#define FW_ASSERT_TIMEOUT		5000
#define CNSS_EVENT_PENDING		2989
#define CNSS_EVENT_PENDING		2989
#define COLD_BOOT_CAL_SHUTDOWN_DELAY_MS	50
#define COLD_BOOT_CAL_SHUTDOWN_DELAY_MS	50
#define WLAN_WD_TIMEOUT_MS		60000


#define CNSS_QUIRKS_DEFAULT		BIT(DISABLE_IO_COHERENCY)
#define CNSS_QUIRKS_DEFAULT		BIT(DISABLE_IO_COHERENCY)
#ifdef CONFIG_CNSS_EMULATION
#ifdef CONFIG_CNSS_EMULATION
@@ -686,7 +687,8 @@ int cnss_idle_restart(struct device *dev)


	timeout = cnss_get_boot_timeout(dev);
	timeout = cnss_get_boot_timeout(dev);
	ret = wait_for_completion_timeout(&plat_priv->power_up_complete,
	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) {
	if (!ret) {
		cnss_pr_err("Timeout waiting for idle restart to complete\n");
		cnss_pr_err("Timeout waiting for idle restart to complete\n");
		ret = -ETIMEDOUT;
		ret = -ETIMEDOUT;