usb: xhci: Improve Soft Retries after short transfers
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- drivers/usb/host/xhci-ring.c | 1 + 1 file changed, 1 insertion(+)
drivers/usb/host/xhci-ring.c +1 -0
@@ -2544,6 +2544,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 :
Signature · 1 line
2.48.1
Quoted 5 lines · Michal Pecio
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 <[email protected]>
Added, Thanks
-Mathias