Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133493
b: refs/heads/master
c: f8bece8
h: refs/heads/master
i:
  133491: 0838165
v: v3
  • Loading branch information
Oliver Neukum authored and Greg Kroah-Hartman committed Mar 24, 2009
1 parent c741198 commit 8f9a368
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6e14bda1b18b2e3c16258427fc43ceb43e1bc1d5
refs/heads/master: f8bece8d91f9ed9cff3c98920802f1b3046b7560
4 changes: 4 additions & 0 deletions trunk/drivers/usb/serial/usb-serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion trunk/include/linux/usb/serial.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ struct usb_serial {
struct usb_device *dev;
struct usb_serial_driver *type;
struct usb_interface *interface;
unsigned char disconnected;
unsigned char disconnected:1;
unsigned char suspending:1;
unsigned char minor;
unsigned char num_ports;
unsigned char num_port_pointers;
Expand Down

0 comments on commit 8f9a368

Please sign in to comment.