Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133538
b: refs/heads/master
c: 1ded7ea
h: refs/heads/master
v: v3
  • Loading branch information
Ming Lei authored and Greg Kroah-Hartman committed Mar 24, 2009
1 parent a097762 commit 6912a6c
Show file tree
Hide file tree
Showing 2 changed files with 23 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: a227fd7db74fa05d866790a4b29ba049bb5035cc
refs/heads/master: 1ded7ea47b8829a06068c3bb5e3ebe471076617a
22 changes: 22 additions & 0 deletions trunk/drivers/usb/serial/ch341.c
Original file line number Diff line number Diff line change
Expand Up @@ -529,12 +529,34 @@ static int ch341_tiocmget(struct tty_struct *tty, struct file *file)
return result;
}


static int ch341_reset_resume(struct usb_interface *intf)
{
struct usb_device *dev = interface_to_usbdev(intf);
struct usb_serial *serial = NULL;
struct ch341_private *priv;

serial = usb_get_intfdata(intf);
priv = usb_get_serial_port_data(serial->port[0]);

/*reconfigure ch341 serial port after bus-reset*/
ch341_configure(dev, priv);

usb_serial_resume(intf);

return 0;
}

static struct usb_driver ch341_driver = {
.name = "ch341",
.probe = usb_serial_probe,
.disconnect = usb_serial_disconnect,
.suspend = usb_serial_suspend,
.resume = usb_serial_resume,
.reset_resume = ch341_reset_resume,
.id_table = id_table,
.no_dynamic_id = 1,
.supports_autosuspend = 1,
};

static struct usb_serial_driver ch341_device = {
Expand Down

0 comments on commit 6912a6c

Please sign in to comment.