greybus: uart fix missing negation on DTR setting
The unset the DTR flag is missing "~" Signed-off-by: Axel Haslam <ahaslam@baylibre.com> Reviewed-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
814ae531d1
commit
9bc63b7ff5
|
@ -375,7 +375,7 @@ static void gb_tty_set_termios(struct tty_struct *tty,
|
|||
|
||||
if (C_BAUD(tty) == B0) {
|
||||
newline.rate = gb_tty->line_coding.rate;
|
||||
newctrl &= GB_UART_CTRL_DTR;
|
||||
newctrl &= ~GB_UART_CTRL_DTR;
|
||||
} else if (termios_old && (termios_old->c_cflag & CBAUD) == B0) {
|
||||
newctrl |= GB_UART_CTRL_DTR;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue