Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185230
b: refs/heads/master
c: a91b0c5
h: refs/heads/master
v: v3
  • Loading branch information
Francesco Lavra authored and Greg Kroah-Hartman committed Mar 2, 2010
1 parent 649937a commit e17d733
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: af2ac1a091bc8bee73d7837b73ebfb00b917aece
refs/heads/master: a91b0c502285fd0c569fae1222fdd945ef739233
18 changes: 18 additions & 0 deletions trunk/drivers/usb/class/cdc-acm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1460,6 +1460,23 @@ static int acm_resume(struct usb_interface *intf)
return rv;
}

static int acm_reset_resume(struct usb_interface *intf)
{
struct acm *acm = usb_get_intfdata(intf);
struct tty_struct *tty;

mutex_lock(&acm->mutex);
if (acm->port.count) {
tty = tty_port_tty_get(&acm->port);
if (tty) {
tty_hangup(tty);
tty_kref_put(tty);
}
}
mutex_unlock(&acm->mutex);
return acm_resume(intf);
}

#endif /* CONFIG_PM */

#define NOKIA_PCSUITE_ACM_INFO(x) \
Expand Down Expand Up @@ -1602,6 +1619,7 @@ static struct usb_driver acm_driver = {
#ifdef CONFIG_PM
.suspend = acm_suspend,
.resume = acm_resume,
.reset_resume = acm_reset_resume,
#endif
.id_table = acm_ids,
#ifdef CONFIG_PM
Expand Down

0 comments on commit e17d733

Please sign in to comment.