mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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>
This commit is contained in:
parent
d53701067f
commit
a7351807bd
1 changed files with 3 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue