Loading drivers/usb/dwc3/gadget.c +5 −2 Original line number Diff line number Diff line Loading @@ -846,7 +846,7 @@ static void dwc3_prepare_one_trb(struct dwc3_ep *dep, struct dwc3_trb *trb; bool zlp_appended = false; unsigned rlen; int isoc_maxp; int isoc_maxp, max_payload, mult; dev_vdbg(dwc->dev, "%s: req %pK dma %08llx length %d%s%s\n", dep->name, req, (unsigned long long) dma, Loading Loading @@ -881,7 +881,10 @@ update_trb: case USB_ENDPOINT_XFER_ISOC: isoc_maxp = usb_endpoint_maxp(dep->endpoint.desc); trb->size |= DWC3_TRB_SIZE_PCM1(isoc_maxp >> 11); max_payload = isoc_maxp & 0x7FF; mult = (req->request.length/max_payload) & 0x3; trb->size |= DWC3_TRB_SIZE_PCM1( (req->request.length%max_payload) ? mult : mult-1); if (!node) trb->ctrl = DWC3_TRBCTL_ISOCHRONOUS_FIRST; else Loading Loading
drivers/usb/dwc3/gadget.c +5 −2 Original line number Diff line number Diff line Loading @@ -846,7 +846,7 @@ static void dwc3_prepare_one_trb(struct dwc3_ep *dep, struct dwc3_trb *trb; bool zlp_appended = false; unsigned rlen; int isoc_maxp; int isoc_maxp, max_payload, mult; dev_vdbg(dwc->dev, "%s: req %pK dma %08llx length %d%s%s\n", dep->name, req, (unsigned long long) dma, Loading Loading @@ -881,7 +881,10 @@ update_trb: case USB_ENDPOINT_XFER_ISOC: isoc_maxp = usb_endpoint_maxp(dep->endpoint.desc); trb->size |= DWC3_TRB_SIZE_PCM1(isoc_maxp >> 11); max_payload = isoc_maxp & 0x7FF; mult = (req->request.length/max_payload) & 0x3; trb->size |= DWC3_TRB_SIZE_PCM1( (req->request.length%max_payload) ? mult : mult-1); if (!node) trb->ctrl = DWC3_TRBCTL_ISOCHRONOUS_FIRST; else Loading