OSDN Git Service

usb: dwc3: gadget: Continue to process pending requests
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Tue, 31 Mar 2020 08:40:42 +0000 (01:40 -0700)
committerFelipe Balbi <balbi@kernel.org>
Mon, 25 May 2020 08:09:36 +0000 (11:09 +0300)
commitd9feef974e0d8cb6842533c92476a1b32a41ba31
tree61ca1233318d23bc8bcb8daaaeb01b46073d165f
parentac82b56bda5fe8a851b8ab18df380d74e9b7fca2
usb: dwc3: gadget: Continue to process pending requests

If there are still pending requests because no TRB was available,
prepare more when started requests are completed.

Introduce dwc3_gadget_ep_should_continue() to check for incomplete and
pending requests to resume updating new TRBs to the controller's TRB
cache.

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