USB: pl2303: fix DTR/RTS being raised on baud rate change
[linux-flexiantxendom0.git] / drivers / usb / serial / pl2303.c
index fc2d66f..5532ea5 100644 (file)
@@ -421,7 +421,7 @@ static void pl2303_set_termios(struct tty_struct *tty,
        control = priv->line_control;
        if ((cflag & CBAUD) == B0)
                priv->line_control &= ~(CONTROL_DTR | CONTROL_RTS);
-       else
+       else if ((old_termios->c_cflag & CBAUD) == B0)
                priv->line_control |= (CONTROL_DTR | CONTROL_RTS);
        if (control != priv->line_control) {
                control = priv->line_control;