Matthew Garrett 2b89a04
commit 0fe584342da141957c8642191b508ad39e9b19e6
Matthew Garrett 2b89a04
Author: Matthew Garrett <mjg@redhat.com>
Matthew Garrett 2b89a04
Date:   Thu Sep 16 13:39:31 2010 -0400
Matthew Garrett 2b89a04
Matthew Garrett 2b89a04
    usbserial: Enable USB autosuspend by default on qcserial
Matthew Garrett 2b89a04
    
Matthew Garrett 2b89a04
    Seems to work fine in my testing.
Matthew Garrett 2b89a04
    
Matthew Garrett 2b89a04
    Signed-off-by: Matthew Garrett <mjg@redhat.com>
Matthew Garrett 2b89a04
Matthew Garrett 2b89a04
diff --git a/drivers/usb/serial/qcserial.c b/drivers/usb/serial/qcserial.c
Matthew Garrett 2b89a04
index cde67ca..2846ad8 100644
Matthew Garrett 2b89a04
--- a/drivers/usb/serial/qcserial.c
Matthew Garrett 2b89a04
+++ b/drivers/usb/serial/qcserial.c
Matthew Garrett 2b89a04
@@ -118,6 +118,8 @@ static int qcprobe(struct usb_serial *serial, const struct usb_device_id *id)
Matthew Garrett 2b89a04
 
Matthew Garrett 2b89a04
 	spin_lock_init(&data->susp_lock);
Matthew Garrett 2b89a04
 
Matthew Garrett 2b89a04
+	usb_enable_autosuspend(serial->dev);
Matthew Garrett 2b89a04
+
Matthew Garrett 2b89a04
 	switch (nintf) {
Matthew Garrett 2b89a04
 	case 1:
Matthew Garrett 2b89a04
 		/* QDL mode */