usb: dwc3: gadget: Set IOC if not enough for extra TRBs
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Thu, 24 Sep 2020 08:22:01 +0000 (01:22 -0700)
committerFelipe Balbi <balbi@kernel.org>
Fri, 2 Oct 2020 06:57:44 +0000 (09:57 +0300)
commit30892cba55968fe244feac811cd00cc12b1a574b
tree8fa66191a32c26de998ec1b536d3a211b93f24b4
parent490410b2e73cd350ba91946913b017c8f6e1b612
usb: dwc3: gadget: Set IOC if not enough for extra TRBs

If we run out of TRBs because we need extra TRBs, make sure to set the
IOC bit for the previously prepared TRB to get completion notification
to free up TRBs to resume later.

Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/dwc3/gadget.c