usb: gadget: Fix bug is queuing req upon function suspend
In case of super speed function suspend without bus suspend, if function driver queues a request, usb_gadget_func_wakeup() directly issues function wakeup command to controller and returns success. As a result request is queued to endpoint before receiving function resume from host. This causes ep queue to fail when it is done upon function resume as request is already queued. If function driver tries to queue any request further this results into request packet drop as ep queue returns error -EBUSY. Hence do not queue request in function wake up context, instead wait for function resume to queue the request. CRs-Fixed: 848622 Change-Id: I00aea59fb2cbe59190dadb4c838534cc9e4ffcf3 Signed-off-by:Hemant Kumar <hemantk@codeaurora.org> Signed-off-by:
Mayank Rana <mrana@codeaurora.org>
Loading
Please register or sign in to comment