Skip to content

Commit

Permalink
usb: dwc3: Check MISSED ISOC bit only for ISOC endpoints
Browse files Browse the repository at this point in the history
When streaming is enabled on BULK endpoints and LST bit is set
observed MISSED ISOC bit set in event->status for BULK ep. Since
this bit is only valid for isocronous endpoints, changed the code
to check for isocrnous endpoints when MISSED ISOC bit is set.

Signed-off-by: Anurag Kumar Vulisha <anurag.kumar.vulisha@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
  • Loading branch information
Anurag Kumar Vulisha authored and Michal Simek committed Jan 9, 2019
1 parent dc417c3 commit 3938458
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/usb/dwc3/gadget.c
Expand Up @@ -2472,7 +2472,8 @@ static void dwc3_gadget_endpoint_transfer_in_progress(struct dwc3_ep *dep,
if (event->status & DEPEVT_STATUS_BUSERR)
status = -ECONNRESET;

if (event->status & DEPEVT_STATUS_MISSED_ISOC) {
if ((event->status & DEPEVT_STATUS_MISSED_ISOC) &&
usb_endpoint_xfer_isoc(dep->endpoint.desc)) {
status = -EXDEV;

if (list_empty(&dep->started_list))
Expand Down

0 comments on commit 3938458

Please sign in to comment.