]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
usb: xhci: Update a comment about Stop Endpoint retries
authorMichal Pecio <michal.pecio@gmail.com>
Wed, 17 Sep 2025 21:07:21 +0000 (00:07 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Sep 2025 07:53:11 +0000 (09:53 +0200)
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>
drivers/usb/host/xhci-ring.c

index d7bef1dd519fb99fd35d4f9fc30d6a8be64e4f25..543cbec560c55ec6c30f6db0509ac49560598cf9 100644 (file)
@@ -1262,8 +1262,9 @@ reset_done:
                         * Stopped state, but it will soon change to Running.
                         *
                         * Assume this bug on unexpected Stop Endpoint failures.
-                        * Keep retrying until the EP starts and stops again, on
-                        * chips where this is known to help. Wait for 100ms.
+                        * Keep retrying until the EP starts and stops again or
+                        * up to a timeout (a defective HC may never start, or a
+                        * driver bug may cause stopping an already stopped EP).
                         */
                        if (time_is_before_jiffies(ep->stop_time + msecs_to_jiffies(100)))
                                break;