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

Skip to content
Commit f33c55b9 authored by Gustavo Solaira's avatar Gustavo Solaira Committed by Ajay Agarwal
Browse files

usb: gadget: f_ipc: Prevent the unregister call from getting stuck



Set the state to IPC_DISCONNECTED and wake up the
write/read wait queues before calling
platform_device_unregister to prevent the call from getting
stuck. The call gets stuck because the IPC export is unable
to unregister from the core if it is stuck waiting in
the ipc_write call.

Change-Id: I4fc04548c6927c1adc0cd746dbd07a02712d0d1e
Signed-off-by: default avatarGustavo Solaira <gustavos@codeaurora.org>
parent 67c0cad6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment