diff options
author | Anurag Kumar Vulisha <anurag.kumar.vulisha@xilinx.com> | 2018-12-01 16:43:25 +0530 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2018-12-05 10:42:50 +0200 |
commit | a7351807bd8b5db0306ccd6977f8c13722731dd5 (patch) | |
tree | 3d6a08fdee31773fea6ab91399eb1ab447309609 /drivers/usb/dwc3/gadget.c | |
parent | d53701067f048b8b11635e964b6d3bd9a248c622 (diff) | |
download | linux-a7351807bd8b5db0306ccd6977f8c13722731dd5.tar.gz linux-a7351807bd8b5db0306ccd6977f8c13722731dd5.tar.bz2 linux-a7351807bd8b5db0306ccd6977f8c13722731dd5.zip |
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 <anurag.kumar.vulisha@xilinx.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc3/gadget.c')
-rw-r--r-- | drivers/usb/dwc3/gadget.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index c4e91c6d4fce..d54d434dc986 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 { |