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 16:29:47 -0700 |
commit | 6bc6cff52e0c4c4c876b1b8a5750041da61ad42b (patch) | |
tree | 98b6815b071be2b0dc8e10b661a7fb1e3cdd9e82 /drivers/usb/core/driver.c | |
parent | 383975d765523a56dc43a6cd6d52e9b376800cf2 (diff) | |
download | op-kernel-dev-6bc6cff52e0c4c4c876b1b8a5750041da61ad42b.zip op-kernel-dev-6bc6cff52e0c4c4c876b1b8a5750041da61ad42b.tar.gz |
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/driver.c')
-rw-r--r-- | drivers/usb/core/driver.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/core/driver.c b/drivers/usb/core/driver.c index 12dd986..02d6db6 100644 --- a/drivers/usb/core/driver.c +++ b/drivers/usb/core/driver.c @@ -24,6 +24,7 @@ #include <linux/device.h> #include <linux/usb.h> +#include <linux/usb/quirks.h> #include <linux/workqueue.h> #include "hcd.h" #include "usb.h" @@ -835,6 +836,9 @@ static int usb_resume_device(struct usb_device *udev) goto done; } + if (udev->quirks & USB_QUIRK_RESET_RESUME) + udev->reset_resume = 1; + udriver = to_usb_device_driver(udev->dev.driver); status = udriver->resume(udev); |