usb: gadget: f_ipc: Use timeout when waiting for request completion
If a certain host does not receive IPC hello messages with the
connected device, then the USB transport is blocked to be added
to the xprt_list maintained by IPC router core, which ultimately
blocks all other transports to be added leading to subsystem
level failures.
Fix this by using timeout version of the wait_for_completion API
in the IPC function driver so as to bail out if the host fails to
receive hello packets.
Change-Id: I4ad789776fffbc28eb099e00631d0bb834f215b7
Signed-off-by:
Ajay Agarwal <ajaya@codeaurora.org>
Loading
Please register or sign in to comment