Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 286997
b: refs/heads/master
c: 108e02b
h: refs/heads/master
i:
  286995: 913073e
v: v3
  • Loading branch information
Johan Hovold authored and Greg Kroah-Hartman committed Jan 24, 2012
1 parent e2fbef3 commit 3dfba99
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: eb833a9e0972f60beb4ab8104ad7ef6bf30f02fc
refs/heads/master: 108e02b12921078a59dcacd048079ece48a4a983
7 changes: 5 additions & 2 deletions trunk/drivers/usb/serial/ftdi_sio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1823,6 +1823,7 @@ static int ftdi_sio_port_remove(struct usb_serial_port *port)

static int ftdi_open(struct tty_struct *tty, struct usb_serial_port *port)
{
struct ktermios dummy;
struct usb_device *dev = port->serial->dev;
struct ftdi_private *priv = usb_get_serial_port_data(port);
int result;
Expand All @@ -1841,8 +1842,10 @@ static int ftdi_open(struct tty_struct *tty, struct usb_serial_port *port)
This is same behaviour as serial.c/rs_open() - Kuba */

/* ftdi_set_termios will send usb control messages */
if (tty)
ftdi_set_termios(tty, port, tty->termios);
if (tty) {
memset(&dummy, 0, sizeof(dummy));
ftdi_set_termios(tty, port, &dummy);
}

/* Start reading from the device */
result = usb_serial_generic_open(tty, port);
Expand Down

0 comments on commit 3dfba99

Please sign in to comment.