USB: serial: Enable USB autosuspend by default on qcserial
authorMatthew Garrett <mjg@redhat.com>
Thu, 16 Sep 2010 18:00:51 +0000 (14:00 -0400)
committerGreg 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

index cde67cacb2c3e823773f49c922365473c9f4c82c..2846ad8883ae24fad5818a7bc0f7e68da1c0bf98 100644 (file)
@@ -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 */