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:
Ajay Prathi <aprathi@codeaurora.org>
Loading
Please register or sign in to comment