lkml.org 
[lkml]   [2018]   [Dec]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v7 04/10] usb: dwc3: update stream id in depcmd
    Date
    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>
    ---
    Changes in v7:
    1. Reverted to dep->stream_capable from dep->endpoint.stream_capable

    Changes in v6:
    1. Used dep->endpoint.stream_capable instead of dep->stream_capable
    flag

    Changes in v5:
    1. None

    Changes in v4:
    1. None

    Changes in v3:
    1. None

    Changes in v2:
    1. None
    ---
    drivers/usb/dwc3/gadget.c | 3 +++
    1 file changed, 3 insertions(+)

    diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
    index 319a3ed..3171c24 100644
    --- a/drivers/usb/dwc3/gadget.c
    +++ b/drivers/usb/dwc3/gadget.c
    @@ -1232,6 +1232,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 {
    --
    2.1.1
    \
     
     \ /
      Last update: 2018-12-01 12:15    [W:4.266 / U:0.068 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site