From: Anurag Kumar Vulisha Date: Sat, 1 Dec 2018 11:13:25 +0000 (+0530) Subject: usb: dwc3: update stream id in depcmd X-Git-Tag: v5.4-rc1~1927^2~16^2~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a7351807bd8b5db0306ccd6977f8c13722731dd5;p=platform%2Fkernel%2Flinux-rpi.git usb: dwc3: update stream id in depcmd For stream capable endpoints, stream id related information needs to be updated into DEPCMD while issuing START TRANSFER. This patch does the same. Signed-off-by: Anurag Kumar Vulisha Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index c4e91c6..d54d434 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -1235,6 +1235,9 @@ static int __dwc3_gadget_kick_transfer(struct dwc3_ep *dep) params.param1 = lower_32_bits(req->trb_dma); cmd = DWC3_DEPCMD_STARTTRANSFER; + if (dep->stream_capable) + cmd |= DWC3_DEPCMD_PARAM(req->request.stream_id); + if (usb_endpoint_xfer_isoc(dep->endpoint.desc)) cmd |= DWC3_DEPCMD_PARAM(dep->frame_number); } else {