mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
usb: dwc3: gadget: only resize fifo for isoc ep with 1024 maxpacket
Signed-off-by: William Wu <william.wu@rock-chips.com> Change-Id: If28098b07a1d3bf0a35c4ff37ae7f548283191c7
This commit is contained in:
@@ -892,7 +892,8 @@ static int dwc3_gadget_ep_enable(struct usb_ep *ep,
|
||||
ret = __dwc3_gadget_ep_enable(dep, DWC3_DEPCFG_ACTION_INIT);
|
||||
spin_unlock_irqrestore(&dwc->lock, flags);
|
||||
|
||||
if (usb_endpoint_xfer_isoc(ep->desc))
|
||||
if (usb_endpoint_xfer_isoc(ep->desc) &&
|
||||
usb_endpoint_maxp(ep->desc) >= 1024)
|
||||
dwc3_gadget_resize_tx_fifos(dwc);
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user