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

Skip to content
Commit 62ebe110 authored by Ajay Prathi's avatar Ajay Prathi Committed by Gerrit - the friendly Code Review server
Browse files

mhi: netdev: Open mhi channels based on state notifications from host



MHI channels are opened at mhi start up,
before host opens the channels which results
in race conditions, when mhi device is switching
on or off, and if mhi netdev uses the channel before
the channel is initialised from host results in crash.
Add code to register for mhi channel state change,
open mhi channels and create network interface
when the state change notification comes from host to
fix the race condition.

Change-Id: Id497d8fe6721709369aa57802c399bcd154b19b6
Signed-off-by: default avatarAjay Prathi <aprathi@codeaurora.org>
parent 81e1f886
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