icnss: Send early modem notification to wlan driver
When SSR happending during WLAN interface up, a deadlock will happen
in many places where it waits for FW response. When wlan module starts,
it will hold a rtnl_lock and wait for FW response. If SSR happened at
this point, it will send ssr notification to all the registed modules
one by one. It will send notification to IPA first, which will also
tried to get a hold of rtnl_lock. Since ssr notification is synchronized,
IPA won't be able to return because of failing to acquire the lock and
wlan driver won't release the rtnl_lock until it timeout with error.
Only graceful to avoid this deadlock is to get early modem
notification from platform via a path which does not acquire
RTNL lock and this way once driver has received early notification it
can reject interface up.
Modem notification comes to icnss before IPA, hence send
early notification in modem SSR handler so that wlan driver
can release RTNL lock as soon as possible.
CRs-Fixed: 2141970
Change-Id: If77c54a2a39ce5cf0e129eb5c6599cd3fd722886
Signed-off-by:  Yuanyuan Liu <yuanliu@codeaurora.org>
Yuanyuan Liu <yuanliu@codeaurora.org>
Loading
Please register or sign in to comment
