Skip to content

Commit 0ed023a

Browse files
Michal Peciogregkh
authored andcommitted
usb: xhci: Update a comment about Stop Endpoint retries
Retries are no longer gated by a quirk, so remove that part. Add a brief explanation of the timeout. Signed-off-by: Michal Pecio <michal.pecio@gmail.com> Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Link: https://lore.kernel.org/r/20250917210726.97100-3-mathias.nyman@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 08fa726 commit 0ed023a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

drivers/usb/host/xhci-ring.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,8 +1262,9 @@ static void xhci_handle_cmd_stop_ep(struct xhci_hcd *xhci, int slot_id,
12621262
* Stopped state, but it will soon change to Running.
12631263
*
12641264
* Assume this bug on unexpected Stop Endpoint failures.
1265-
* Keep retrying until the EP starts and stops again, on
1266-
* chips where this is known to help. Wait for 100ms.
1265+
* Keep retrying until the EP starts and stops again or
1266+
* up to a timeout (a defective HC may never start, or a
1267+
* driver bug may cause stopping an already stopped EP).
12671268
*/
12681269
if (time_is_before_jiffies(ep->stop_time + msecs_to_jiffies(100)))
12691270
break;

0 commit comments

Comments
 (0)