summaryrefslogtreecommitdiffstats
path: root/linux-2.6-qcserial-autosuspend.patch
diff options
context:
space:
mode:
authorMatthew Garrett <mjg@redhat.com>2010-09-17 13:47:45 -0400
committerMatthew Garrett <mjg@redhat.com>2010-09-17 13:47:45 -0400
commit2b89a044b6b733b9e7b32ebc3fe3933650fcd63f (patch)
tree6e653ce5e40ce136ff906231deaf71d483965fb9 /linux-2.6-qcserial-autosuspend.patch
parent606af2d7c2a1f391d8d7f6850bd6685a2a887965 (diff)
downloadkernel-2b89a044b6b733b9e7b32ebc3fe3933650fcd63f.tar.gz
kernel-2b89a044b6b733b9e7b32ebc3fe3933650fcd63f.tar.xz
kernel-2b89a044b6b733b9e7b32ebc3fe3933650fcd63f.zip
Add more USB runtime power management
Diffstat (limited to 'linux-2.6-qcserial-autosuspend.patch')
-rw-r--r--linux-2.6-qcserial-autosuspend.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/linux-2.6-qcserial-autosuspend.patch b/linux-2.6-qcserial-autosuspend.patch
new file mode 100644
index 000000000..524898813
--- /dev/null
+++ b/linux-2.6-qcserial-autosuspend.patch
@@ -0,0 +1,23 @@
+commit 0fe584342da141957c8642191b508ad39e9b19e6
+Author: Matthew Garrett <mjg@redhat.com>
+Date: Thu Sep 16 13:39:31 2010 -0400
+
+ usbserial: Enable USB autosuspend by default on qcserial
+
+ Seems to work fine in my testing.
+
+ Signed-off-by: Matthew Garrett <mjg@redhat.com>
+
+diff --git a/drivers/usb/serial/qcserial.c b/drivers/usb/serial/qcserial.c
+index cde67ca..2846ad8 100644
+--- 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 */