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

Skip to content
Commit e18b7975 authored by Felipe Balbi's avatar Felipe Balbi
Browse files

usb: dwc3: gadget: don't clear EP_BUSY too early



In case of non-Isochronous transfers, we don't
want to clear DWC3_EP_BUSY flag until XferComplete
event. That's because XferInProgress was only enabled
so we can recycle TRBs and usb_requests quicker, but
there are still other pending requests being transferred.

In order to make sure we don't allow for another StartTransfer
command while the HW is still processing other transfers,
we must keep DWC3_EP_BUSY flag set and this what this patch
does.

Fixes: f3af3651 (usb: dwc3: gadget: always enable IOC on
	bulk/interrupt transfers)
Cc: <stable@vger.kernel.org> # v3.15+
Reported-by: default avatarsundeep subbaraya <sundeep.lkml@gmail.com>
Tested-by: default avatarsundeep subbaraya <sundeep.lkml@gmail.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 307c858b
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