OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
969afff
)
USB: serial: Enable USB autosuspend by default on qcserial
author
Matthew Garrett
<mjg@redhat.com>
Thu, 16 Sep 2010 18:00:51 +0000
(14:00 -0400)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Fri, 22 Oct 2010 17:21:47 +0000
(10:21 -0700)
Seems to work fine in my testing.
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/qcserial.c
patch
|
blob
|
history
diff --git
a/drivers/usb/serial/qcserial.c
b/drivers/usb/serial/qcserial.c
index
cde67ca
..
2846ad8
100644
(file)
--- a/
drivers/usb/serial/qcserial.c
+++ b/
drivers/usb/serial/qcserial.c
@@
-118,6
+118,8
@@
static int qcprobe(struct usb_serial *serial, const struct usb_device_id *id)
spin_lock_init(&data->susp_lock);
+ usb_enable_autosuspend(serial->dev);
+
switch (nintf) {
case 1:
/* QDL mode */