OSDN Git Service

usb: dwc3: gadget: offset Start Transfer latency for bulk EPs
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 29 Sep 2016 13:28:56 +0000 (16:28 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 3 Nov 2016 08:38:29 +0000 (10:38 +0200)
commita97ea994605e805efeb1dc07a6d10ec5dd8e16d4
tree13bc03cf32e477c1f01c027d8bda9c270b429f07
parentfa8d965d736be5a0e1e9206ebe1703b07b69217d
usb: dwc3: gadget: offset Start Transfer latency for bulk EPs

We can offset the latency of a full Start Transfer
command - where we _must_ poll for its completion -
to usb_ep_enable() time. This means that once
requests start showing up from the gadget driver, we
can rely on No Response Update Transfer command -
where we don't need to poll for completion.

This patch, starts implementing this method for Bulk
endpoints, even though, technically, we could extend
it to all other endpoints in future commits.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/gadget.c