diff options
author | Oliver Neukum <oliver@neukum.org> | 2008-09-15 17:29:28 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-10-17 23:40:55 +0200 |
commit | 399d31da4e2f701ba91cdb4b39e074d6e16174a9 (patch) | |
tree | 6aaf3ffb3d4121df80db32df14cbe8c916a0fc7b | |
parent | USB: ftdi_sio: fix 'product' parameter description (diff) | |
download | linux-399d31da4e2f701ba91cdb4b39e074d6e16174a9.tar.xz linux-399d31da4e2f701ba91cdb4b39e074d6e16174a9.zip |
USB: RESET_RESUME needs to block autosuspend when remote wakeup is needed
Reset upon resumption will wipe the input buffer and is therefore
a reason to not suspend if remote wakeup is requested because
the driver needs that data.
Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/usb/core/driver.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/core/driver.c b/drivers/usb/core/driver.c index 5a7fa6f09958..e935be7eb468 100644 --- a/drivers/usb/core/driver.c +++ b/drivers/usb/core/driver.c @@ -1070,7 +1070,8 @@ static int autosuspend_check(struct usb_device *udev, int reschedule) struct usb_driver *driver; driver = to_usb_driver(intf->dev.driver); - if (!driver->reset_resume) + if (!driver->reset_resume || + intf->needs_remote_wakeup) return -EOPNOTSUPP; } } |