Skip to content

Commit

Permalink
USB: serial: enable async suspend for usb serial port device
Browse files Browse the repository at this point in the history
Usb serial port device is child of its usb interface device, so
we can enable async suspend of usb serial port device to speedup
system suspend.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Ming Lei authored and Greg Kroah-Hartman committed Aug 10, 2010
1 parent d0390d9 commit a7a6b79
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/usb/serial/usb-serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -1071,6 +1071,8 @@ int usb_serial_probe(struct usb_interface *interface,
dev_set_name(&port->dev, "ttyUSB%d", port->number);
dbg ("%s - registering %s", __func__, dev_name(&port->dev));
port->dev_state = PORT_REGISTERING;
device_enable_async_suspend(&port->dev);

retval = device_add(&port->dev);
if (retval) {
dev_err(&port->dev, "Error registering port device, "
Expand Down

0 comments on commit a7a6b79

Please sign in to comment.