Skip to content

Commit e21ebe5

Browse files
matnymangregkh
authored andcommitted
xhci: Turn NEC specific quirk for handling Stop Endpoint errors generic
xHC hosts from several vendors have the same issue where endpoints start so slowly that a later queued 'Stop Endpoint' command may complete before endpoint is up and running. The 'Stop Endpoint' command fails with context state error as the endpoint still appears as stopped. See commit 42b7581 ("usb: xhci: Limit Stop Endpoint retries") for details CC: [email protected] Signed-off-by: Mathias Nyman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 59275b7 commit e21ebe5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/usb/host/xhci-ring.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,8 +1199,6 @@ static void xhci_handle_cmd_stop_ep(struct xhci_hcd *xhci, int slot_id,
11991199
* Keep retrying until the EP starts and stops again, on
12001200
* chips where this is known to help. Wait for 100ms.
12011201
*/
1202-
if (!(xhci->quirks & XHCI_NEC_HOST))
1203-
break;
12041202
if (time_is_before_jiffies(ep->stop_time + msecs_to_jiffies(100)))
12051203
break;
12061204
fallthrough;

0 commit comments

Comments
 (0)