Browse Source

USB: serial: Enable USB autosuspend by default on qcserial

Seems to work fine in my testing.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Matthew Garrett 15 years ago
parent
commit
1f8dd0154e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      drivers/usb/serial/qcserial.c

+ 2 - 0
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 */