USB: ftdi_sio: remove redundant raise of DTR/RTS at open
Do not raise DTR/RTS a second time in set_termios at open -- this has already been taken care of by the tty layer. Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
be0278ccf3
commit
3177130fd7
@@ -2187,7 +2187,7 @@ no_data_parity_stop_changes:
|
||||
dev_err(ddev, "%s urb failed to set baudrate\n", __func__);
|
||||
mutex_unlock(&priv->cfg_lock);
|
||||
/* Ensure RTS and DTR are raised when baudrate changed from 0 */
|
||||
if (!old_termios || (old_termios->c_cflag & CBAUD) == B0)
|
||||
if (old_termios && (old_termios->c_cflag & CBAUD) == B0)
|
||||
set_mctrl(port, TIOCM_DTR | TIOCM_RTS);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user