aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/host/xhci-mem.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c
index ec825f16dcee..075e1036bcb4 100644
--- a/drivers/usb/host/xhci-mem.c
+++ b/drivers/usb/host/xhci-mem.c
@@ -480,11 +480,13 @@ int xhci_endpoint_init(struct xhci_hcd *xhci,
480 480
481 /* FIXME dig Mult and streams info out of ep companion desc */ 481 /* FIXME dig Mult and streams info out of ep companion desc */
482 482
483 /* Allow 3 retries for everything but isoc */ 483 /* Allow 3 retries for everything but isoc;
484 * error count = 0 means infinite retries.
485 */
484 if (!usb_endpoint_xfer_isoc(&ep->desc)) 486 if (!usb_endpoint_xfer_isoc(&ep->desc))
485 ep_ctx->ep_info2 = ERROR_COUNT(3); 487 ep_ctx->ep_info2 = ERROR_COUNT(3);
486 else 488 else
487 ep_ctx->ep_info2 = ERROR_COUNT(0); 489 ep_ctx->ep_info2 = ERROR_COUNT(1);
488 490
489 ep_ctx->ep_info2 |= xhci_get_endpoint_type(udev, ep); 491 ep_ctx->ep_info2 |= xhci_get_endpoint_type(udev, ep);
490 492