mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
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: Sandeep Singh <sandsing@codeaurora.org>
This commit is contained in:
parent
5168327a4f
commit
d9050c4af5
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue