Skip to content
  • Gerd Hoffmann's avatar
    usb-host: add usb_host_do_reset function. · c7662daa
    Gerd Hoffmann authored
    
    
    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: default avatarGerd Hoffmann <kraxel@redhat.com>
    c7662daa