All of lore.kernel.org
 help / color / mirror / Atom feed
* All USB tools hang when one descriptor read fails and needs to timeout
@ 2023-01-26 11:49 Troels Liebe Bentsen
  2023-01-26 12:23 ` Greg KH
  0 siblings, 1 reply; 20+ messages in thread
From: Troels Liebe Bentsen @ 2023-01-26 11:49 UTC (permalink / raw)
  To: linux-usb

Hi,

We have a hardware projekt where something is off with power ON
timing. It sometimes gets started in a broken state where the device
is seen by the USB system but does not respond to descriptor reads.

When this happens this causes lsusb and libusb based tools to hang
until the descriptor read in the USB subsystem timeout out after 30
seconds or so. It looks like the tools are trying to read
/sys/bus/usb/devices/.../descriptors and it blocks until the timeout
happens.

We should fix our hardware and have done so in the next revision but
why should one device be able to block the descriptors file that most
user land USB code seem to use.

Would there be any reasoning against just serving the descriptors file
as it looked before inserting the broken USB device instead of
blocking the read?

And if we wanted to create a pull request for a change like that would
it be accepted or would it be considered breaking the API?

Regards Troels

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2023-02-08 21:57 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-26 11:49 All USB tools hang when one descriptor read fails and needs to timeout Troels Liebe Bentsen
2023-01-26 12:23 ` Greg KH
2023-01-26 13:06   ` Troels Liebe Bentsen
2023-01-26 13:12     ` Greg KH
2023-01-26 13:59       ` Troels Liebe Bentsen
2023-01-26 14:27         ` Hans Petter Selasky
2023-01-26 15:26           ` Troels Liebe Bentsen
2023-01-26 16:23             ` Alan Stern
2023-01-26 16:17         ` Alan Stern
2023-01-27 14:12           ` Troels Liebe Bentsen
2023-01-27 16:07             ` Alan Stern
2023-01-31 15:59               ` Troels Liebe Bentsen
2023-01-31 20:41                 ` Alan Stern
2023-01-31 20:56                   ` Greg KH
2023-02-07  8:25                     ` Troels Liebe Bentsen
2023-02-07  8:33                       ` Troels Liebe Bentsen
2023-02-07 17:52                       ` Alan Stern
2023-02-08 16:48                         ` Alan Stern
2023-02-08 20:46                           ` Troels Liebe Bentsen
2023-02-08 21:57                             ` Alan Stern

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.