|
@@ -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;
|
|
@@ -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);
|