mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-12 08:45:11 +08:00
usb: dwc3: gadget: start Bulk endpoints more frequently
Now we can try to issue Update Transfer every time gadget driver queues a new request. This will make sure we keep controller's queue busy for as long as possible. Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
This commit is contained in:
parent
13fa2e69b1
commit
ba62c09d5c
@ -1133,8 +1133,7 @@ static int __dwc3_gadget_ep_queue(struct dwc3_ep *dep, struct dwc3_request *req)
|
|||||||
* little bit faster.
|
* little bit faster.
|
||||||
*/
|
*/
|
||||||
if (!usb_endpoint_xfer_isoc(dep->endpoint.desc) &&
|
if (!usb_endpoint_xfer_isoc(dep->endpoint.desc) &&
|
||||||
!usb_endpoint_xfer_int(dep->endpoint.desc) &&
|
!usb_endpoint_xfer_int(dep->endpoint.desc)) {
|
||||||
!(dep->flags & DWC3_EP_BUSY)) {
|
|
||||||
ret = __dwc3_gadget_kick_transfer(dep, 0);
|
ret = __dwc3_gadget_kick_transfer(dep, 0);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user