diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2011-11-16 12:37:17 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2011-11-23 17:17:17 +0100 |
commit | c7662daaa2898fa5a9a39bc51985cd1dd08af988 (patch) | |
tree | 6f4df233c8ad782fa2b542b93b162f6239b8bbd0 /iorange.h | |
parent | 335b8d2068cbc56ce86b3c89b0fcd1c1eb4b61e2 (diff) |
usb-host: add usb_host_do_reset function.
Add a special function to reset the host usb device. It tracks the time
needed by the USBDEVFS_RESET ioctl and prints a warning in case it needs
too long. Usually it should be finished in 200 - 300 miliseconds.
Warning threshold is one second.
Intention is to help troubleshooting by indicating that the usb device
stopped responding even to a reset request and is possibly broken.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'iorange.h')
0 files changed, 0 insertions, 0 deletions