Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303854
b: refs/heads/master
c: 2bfd1c9
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed May 7, 2012
1 parent 93f6b4f commit f1d0d06
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 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: 32078f915d1acab356080b144aa89fe3487f3979
refs/heads/master: 2bfd1c96a9fb9b547db9a2ad8428dc8de5526e92
14 changes: 4 additions & 10 deletions trunk/drivers/usb/serial/ch341.c
Original file line number Diff line number Diff line change
Expand Up @@ -577,27 +577,20 @@ static int ch341_tiocmget(struct tty_struct *tty)
return result;
}


static int ch341_reset_resume(struct usb_interface *intf)
static int ch341_resume(struct usb_serial *serial)
{
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);
/* reconfigure ch341 serial port after bus-reset */
ch341_configure(serial->dev, priv);

return 0;
}

static struct usb_driver ch341_driver = {
.name = "ch341",
.reset_resume = ch341_reset_resume,
.id_table = id_table,
};

Expand All @@ -619,6 +612,7 @@ static struct usb_serial_driver ch341_device = {
.tiocmset = ch341_tiocmset,
.read_int_callback = ch341_read_int_callback,
.attach = ch341_attach,
.resume = ch341_resume,
};

static struct usb_serial_driver * const serial_drivers[] = {
Expand Down

0 comments on commit f1d0d06

Please sign in to comment.