• Alan Stern's avatar
    [PATCH] USB: Add locking support for USB device resets · 7d8d0405
    Alan Stern authored
    This patch reintroduces the usb_lock_device_for_reset() routine, which
    is specially tailored to meet the needs of drivers that have to reset a
    device either during probe() or during normal operations.  It updates a
    few drivers that do device resets, to make them use the new routine.  It
    also adds a new field to struct usb_interface, to keep track of whether
    the interface is in the process of being bound to or unbound from a
    driver.  This is necessary, because during binding we know the device is
    already locked so we don't want to try to acquire the lock again!
    
    With this patch in place, USB device resets should finally become
    reliable.
    Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
    Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
    7d8d0405
microtek.h 1019 Bytes