diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2007-05-04 11:53:03 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-07-12 19:29:47 -0400 |
commit | 6bc6cff52e0c4c4c876b1b8a5750041da61ad42b (patch) | |
tree | 98b6815b071be2b0dc8e10b661a7fb1e3cdd9e82 /drivers/usb/core/hub.c | |
parent | 383975d765523a56dc43a6cd6d52e9b376800cf2 (diff) |
USB: add RESET_RESUME device quirk
This patch (as888) adds a new USB device quirk for devices which are
unable to resume correctly. By using the new code added for the
USB-persist facility, it is a simple matter to reset these devices
instead of resuming them. To get things kicked off, a quirk entry is
added for the Philips PSC805.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/core/hub.c')
-rw-r--r-- | drivers/usb/core/hub.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 51d2d304568b..d37ad083d5ef 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c | |||
@@ -2939,6 +2939,11 @@ static int config_descriptors_changed(struct usb_device *udev) | |||
2939 | * this from a driver probe() routine after downloading new firmware. | 2939 | * this from a driver probe() routine after downloading new firmware. |
2940 | * For calls that might not occur during probe(), drivers should lock | 2940 | * For calls that might not occur during probe(), drivers should lock |
2941 | * the device using usb_lock_device_for_reset(). | 2941 | * the device using usb_lock_device_for_reset(). |
2942 | * | ||
2943 | * Locking exception: This routine may also be called from within an | ||
2944 | * autoresume handler. Such usage won't conflict with other tasks | ||
2945 | * holding the device lock because these tasks should always call | ||
2946 | * usb_autopm_resume_device(), thereby preventing any unwanted autoresume. | ||
2942 | */ | 2947 | */ |
2943 | int usb_reset_device(struct usb_device *udev) | 2948 | int usb_reset_device(struct usb_device *udev) |
2944 | { | 2949 | { |