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

Skip to content
Commit a5b1c907 authored by Ajay Agarwal's avatar Ajay Agarwal Committed by Gerrit - the friendly Code Review server
Browse files

usb: gadget: ci13xxx: Unbind composite driver after disabling EP0



Currently the UDC core driver unbinds the composite driver and
then stops the UDC. In the case when an EP0 request is still
pending with the controller, this leads to the pending request's
buffer being freed up first and then unmapping of the dma range.
This leads to invalid DMA ops.
Fix this by first disabling EP0 from pulldown callback which
will unmap the DMA for queued requests and release them, and
then unbinding the composite driver.

Change-Id: I134b3c006f1210e345f9f0a0ad9b69792091cfc0
Signed-off-by: default avatarAjay Agarwal <ajaya@codeaurora.org>
parent 94b69893
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment