summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/gadget.c
diff options
context:
space:
mode:
authorAnurag Kumar Vulisha <anurag.kumar.vulisha@xilinx.com>2018-12-01 16:43:27 +0530
committerFelipe Balbi <felipe.balbi@linux.intel.com>2018-12-05 10:44:35 +0200
commit26d62b4d10ad54622cd16b4871ee635f0ee287b6 (patch)
tree7091909f71488af4539cab117dc5350531e923a5 /drivers/usb/dwc3/gadget.c
parenta7351807bd8b5db0306ccd6977f8c13722731dd5 (diff)
downloadtalos-obmc-linux-26d62b4d10ad54622cd16b4871ee635f0ee287b6.tar.gz
talos-obmc-linux-26d62b4d10ad54622cd16b4871ee635f0ee287b6.zip
usb: dwc3: don't issue no-op trb for stream capable endpoints
The stream capable endpoints require stream id to be given when issuing START TRANSFER. While issuing no-op trb the stream id is not yet known, so don't issue no-op trb's on stream capable endpoints. 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
index d54d434dc986..08dea6fdb4a8 100644
--- a/drivers/usb/dwc3/gadget.c
+++ b/drivers/usb/dwc3/gadget.c
@@ -670,7 +670,7 @@ static int __dwc3_gadget_ep_enable(struct dwc3_ep *dep, unsigned int action)
* Issue StartTransfer here with no-op TRB so we can always rely on No
* Response Update Transfer command.
*/
- if (usb_endpoint_xfer_bulk(desc) ||
+ if ((usb_endpoint_xfer_bulk(desc) && !dep->stream_capable) ||
usb_endpoint_xfer_int(desc)) {
struct dwc3_gadget_ep_cmd_params params;
struct dwc3_trb *trb;
OpenPOWER on IntegriCloud