1USB_RESET_DEVICE(9)              USB Core APIs             USB_RESET_DEVICE(9)
2
3
4

NAME

6       usb_reset_device - warn interface drivers and perform a USB port reset
7

SYNOPSIS

9       int usb_reset_device(struct usb_device * udev);
10

ARGUMENTS

12       udev
13           device to reset (not in SUSPENDED or NOTATTACHED state)
14

DESCRIPTION

16       Warns all drivers bound to registered interfaces (using their pre_reset
17       method), performs the port reset, and then lets the drivers know that
18       the reset is over (using their post_reset method).
19

RETURN

21       The same as for usb_reset_and_verify_device.
22

NOTE

24       The caller must own the device lock. For example, it's safe to use this
25       from a driver probe routine after downloading new firmware. For calls
26       that might not occur during probe, drivers should lock the device using
27       usb_lock_device_for_reset.
28
29       If an interface is currently being probed or disconnected, we assume
30       its driver knows how to handle resets. For all other interfaces, if the
31       driver doesn't have pre_reset and post_reset methods then we attempt to
32       unbind it and rebind afterward.
33
35Kernel Hackers Manual 3.10         June 2019               USB_RESET_DEVICE(9)
Impressum