|
@@ -1067,6 +1067,8 @@ int usb_serial_suspend(struct usb_interface *intf, pm_message_t message)
|
|
|
struct usb_serial_port *port;
|
|
|
int i, r = 0;
|
|
|
|
|
|
+ serial->suspending = 1;
|
|
|
+
|
|
|
for (i = 0; i < serial->num_ports; ++i) {
|
|
|
port = serial->port[i];
|
|
|
if (port)
|
|
@@ -1084,8 +1086,10 @@ int usb_serial_resume(struct usb_interface *intf)
|
|
|
{
|
|
|
struct usb_serial *serial = usb_get_intfdata(intf);
|
|
|
|
|
|
+ serial->suspending = 0;
|
|
|
if (serial->type->resume)
|
|
|
return serial->type->resume(serial);
|
|
|
+
|
|
|
return 0;
|
|
|
}
|
|
|
EXPORT_SYMBOL(usb_serial_resume);
|