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

Commit f64e0937 authored by Naman Padhiar's avatar Naman Padhiar Committed by Gerrit - the friendly Code Review server
Browse files

icnss2: Do not start recovery timer on gracefull shutdown



Recovery timer is used to detect FW_READY timeout during
SSR/PDR recovery and assert when expires. In case of
gracefull shutdown avoid starting recovery timer.

Change-Id: Ieae2ae1d52db6648c1639ff5fca8fa9f004a6d7f
Signed-off-by: default avatarNaman Padhiar <quic_npadhiar@quicinc.com>
parent 04108b83
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -1860,6 +1860,7 @@ static int icnss_modem_notifier_nb(struct notifier_block *nb,
	icnss_driver_event_post(priv, ICNSS_DRIVER_EVENT_PD_SERVICE_DOWN,
				ICNSS_EVENT_SYNC, event_data);

	if (notif->crashed)
		mod_timer(&priv->recovery_timer,
			  jiffies + msecs_to_jiffies(ICNSS_RECOVERY_TIMEOUT));
out:
@@ -2031,6 +2032,7 @@ static int icnss_service_notifier_notify(struct notifier_block *nb,
	icnss_driver_event_post(priv, ICNSS_DRIVER_EVENT_PD_SERVICE_DOWN,
				ICNSS_EVENT_SYNC, event_data);

	if (event_data->crashed)
		mod_timer(&priv->recovery_timer,
			  jiffies + msecs_to_jiffies(ICNSS_RECOVERY_TIMEOUT));
done: