xhci fixes for usb-linus
Subsystems (3)
cover xhci fixes for usb-linus
Hi Greg
A couple fixes for usb-linus 6.13-rc, resolves a ring expansion regression that snuck into 6.13-rc1, and turns a NEC specific workaround generic as it seen on other vendors xHC as well.
Thanks
Mathias
Mathias Nyman (1):
xhci: Turn NEC specific quirk for handling Stop Endpoint errors
generic
Niklas Neronin (1):
usb: xhci: fix ring expansion regression in 6.13-rc1
drivers/usb/host/xhci-mem.c | 2 +- drivers/usb/host/xhci-ring.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-)
Signature · 1 line
2.25.1
PATCH 1/2 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 42b758137601 ("usb: xhci: Limit Stop Endpoint retries") for details
--- drivers/usb/host/xhci-ring.c | 2 -- 1 file changed, 2 deletions(-)
drivers/usb/host/xhci-ring.c +0 -2
@@ -1199,8 +1199,6 @@ static void xhci_handle_cmd_stop_ep(struct xhci_hcd *xhci, int slot_id,* Keep retrying until the EP starts and stops again, on * chips where this is known to help. Wait for 100ms. */ -if (!(xhci->quirks &XHCI_NEC_HOST )) -break ;if (time_is_before_jiffies (ep->stop_time +msecs_to_jiffies (100 )))break ; fallthrough;
Signature · 1 line
2.25.1
PATCH 2/2 usb: xhci: fix ring expansion regression in 6.13-rc1
In reply to Mathias NymanFrom: Niklas Neronin <[email protected]>
The source and destination rings were incorrectly assigned during the ring linking process. The "source" ring, which contains the new segments, was not spliced into the "destination" ring, leading to incorrect ring expansion.
--- drivers/usb/host/xhci-mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/host/xhci-mem.c +1 -1
@@ -436,7 +436,7 @@ int xhci_ring_expansion(struct xhci_hcd *xhci, struct xhci_ring *ring, goto free_segments; } -xhci_link_rings (xhci, ring, &new_ring); +xhci_link_rings (xhci, &new_ring, ring);trace_xhci_ring_expansion (ring); xhci_dbg_trace(xhci, trace_xhci_dbg_ring_expansion, "ring expansion succeed, now has %d segments",
Signature · 1 line
2.25.1