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

Skip to content
Commit 2231fbb3 authored by Ajay Agarwal's avatar Ajay Agarwal
Browse files

usb: gadget: f_ipc: Update online flag in set_alt/disable



Currently the driver updates online flag to true as a part of
connect function_work handling. If the function suspend is issued
by the host before this connect work could get scheduled, then
the online flag will be set to true but ep_queue will fail and
it will wait for function resume to get called. While this is
functionally not an issue but logically incorrect.
Fix this by moving the updation of online flag out of workqueue
to set_alt/disable functions.

Change-Id: I633b33cc50bfaac1f7281e3ab28fcbbdf9ec72e0
Signed-off-by: default avatarAjay Agarwal <ajaya@codeaurora.org>
parent f33c55b9
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