Commit d44debd4 authored by Pranjal Ramajor Asha Kanojiya's avatar Pranjal Ramajor Asha Kanojiya
Browse files

mhi_bus: core: Call the remove cb before checking channel is closed



During mhi_driver_remove(), MHI waits for channel to be closed. This wait
happens before calling remove() callback, remove() callback allows client
to clean up and close the channel (for example client can call
mhi_unprepare_from_transfer()). Due to this behavior of MHI, client is
clueless and continues holding the channel. This could make MHI wait
forever and hang the system.

Change-Id: I950eedbdb6939bd0d9f70e7fed14afc777571485
Signed-off-by: default avatarPranjal Ramajor Asha Kanojiya <quic_pkanojiy@quicinc.com>
parent 9e73cd95
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment