From: Michal Pecio Date: Wed, 3 Jun 2026 09:11:23 +0000 (+0300) Subject: usb: xhci: Improve Soft Retries after short transfers X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e765ab012f73717238c95ab9c34bfc3c767fa48c;p=thirdparty%2Flinux.git usb: xhci: Improve Soft Retries after short transfers A short transfer is a successful one, so reset the error count. Otherwise, endpoints which always complete short are limited to three retries per endpoint life rather than per URB. Signed-off-by: Michal Pecio Signed-off-by: Mathias Nyman Link: https://patch.msgid.link/20260603091132.1110849-7-mathias.nyman@linux.intel.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c index a5342d49a65b..608b6f3ec9f6 100644 --- a/drivers/usb/host/xhci-ring.c +++ b/drivers/usb/host/xhci-ring.c @@ -2516,6 +2516,7 @@ static void process_bulk_intr_td(struct xhci_hcd *xhci, struct xhci_virt_ep *ep, td->status = 0; break; case COMP_SHORT_PACKET: + ep->err_count = 0; td->status = 0; break; case COMP_STOPPED_SHORT_PACKET: