Re: [PATCH] usbhid: tolerate intermittent errors

From: Alan Stern

Date: Mon Feb 09 2026 - 10:00:52 EST


On Mon, Feb 09, 2026 at 11:06:03AM +0100, Oliver Neukum wrote:
> On 08.02.26 18:10, Liam Mitchell wrote:
> > Modifies the usbhid error handling logic to better handle intermittent
> > errors like EPROTO, which should only need resubmission of URBs and not
> > full device reset.
> >
> > Reduces initial retry delay from 13ms to 1ms. The faster the URB is
> > resubmitted, the lower the chance that user events will be missed.
>
> Hi,
>
> in this case I have to ask the obvious question: Why wait at all?

Because of the possibility that the error was caused by transient
interference that might not go away immediately.

> It would seem to me that if you have spurious or intermittent errors
> the right time to retry is immediately.

It depends on the cause of the errors. In any case, a short delay, such
as 1 ms, should not make much difference.

Alan Stern