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

Commit b9b8ce62 authored by Mohammed Siddiq's avatar Mohammed Siddiq Committed by Gerrit - the friendly Code Review server
Browse files

icnss: Reduce the shutdown timeout from 50sec to 15sec



Sub-system shutdown timeout is 20 seconds. In wlan platform driver, 
modem block shutdown timeout should be less than sub-system timeout.
Hence, change block shutdown timeout to 15 seconds.

Change-Id: I936e0c462858727b86b35b924dd124a5d1434780
Signed-off-by: default avatarMohammed Siddiq <msiddiq@codeaurora.org>
parent 0780e20a
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -62,7 +62,7 @@
#define ICNSS_QUIRKS_DEFAULT		BIT(FW_REJUVENATE_ENABLE)
#define ICNSS_MAX_PROBE_CNT		2

#define PROBE_TIMEOUT			5000
#define PROBE_TIMEOUT                 15000

static struct icnss_priv *penv;

@@ -1490,8 +1490,8 @@ static int icnss_modem_notifier_nb(struct notifier_block *nb,
	if (code == SUBSYS_BEFORE_SHUTDOWN && !notif->crashed &&
	    test_bit(ICNSS_BLOCK_SHUTDOWN, &priv->state)) {
		if (!wait_for_completion_timeout(&priv->unblock_shutdown,
						 PROBE_TIMEOUT))
			icnss_pr_err("wlan driver probe timeout\n");
				msecs_to_jiffies(PROBE_TIMEOUT)))
			icnss_pr_err("modem block shutdown timeout\n");
	}

	if (code == SUBSYS_BEFORE_SHUTDOWN && !notif->crashed) {