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

Skip to content
Commit 38b41ef4 authored by Yuanyuan Liu's avatar Yuanyuan Liu
Browse files

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: default avatarYuanyuan Liu <yuanliu@codeaurora.org>
parent dc7b4aeb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment