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

Commit d9050c4a authored by Sandeep Singh's avatar Sandeep Singh
Browse files

icnss: Assign priority for icnss modem notifier callback



This change is to ensure that modem notifier callback for
icnss2 driver gets called before it gets called for IPA.
In one scenerio, wlan driver holds rtnl lock before
trying to send WMI message to wlan fw, During same time
watchdog bite happened on modem and IPA received modem
notifier callback. Here IPA is also trying to hold rtnl lock
which is held by wlan driver which never got released as driver
is not aware of watchdog bite on modem. In this case
icnss driver is not getting modem notifier callback.This
change ensures modem notifier gets called for wlan first
and rtnl lock held by wlan driver gets released.

Change-Id: I9effd300f6b22138baec59a03a9c4bceb87a8130
Signed-off-by: default avatarSandeep Singh <sandsing@codeaurora.org>
parent 5168327a
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1549,6 +1549,11 @@ static int icnss_modem_ssr_register_notifier(struct icnss_priv *priv)
	int ret = 0;

	priv->modem_ssr_nb.notifier_call = icnss_modem_notifier_nb;
	/*
	 * Assign priority of icnss modem notifier callback over IPA
	 * modem notifier callback which is 0
	 */
	priv->modem_ssr_nb.priority = 1;

	priv->modem_notify_handler =
		subsys_notif_register_notifier("modem", &priv->modem_ssr_nb);