]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/usb/dwc3/gadget.c
Merge tag 'gadget-for-v3.6' of git://git.kernel.org/pub/scm/linux/kernel/git/balbi...
[karo-tx-linux.git] / drivers / usb / dwc3 / gadget.c
index ec70df7aba17e45635306b0a924625f7c1c59aec..4f3e8811daefd9956558caa00f80f241151cd3ab 100644 (file)
@@ -414,7 +414,7 @@ static int dwc3_gadget_set_ep_config(struct dwc3 *dwc, struct dwc3_ep *dep,
 
        params.param0 = DWC3_DEPCFG_EP_TYPE(usb_endpoint_type(desc))
                | DWC3_DEPCFG_MAX_PACKET_SIZE(usb_endpoint_maxp(desc))
-               | DWC3_DEPCFG_BURST_SIZE(dep->endpoint.maxburst);
+               | DWC3_DEPCFG_BURST_SIZE(dep->endpoint.maxburst - 1);
 
        params.param1 = DWC3_DEPCFG_XFER_COMPLETE_EN
                | DWC3_DEPCFG_XFER_NOT_READY_EN;