1
0
Fork 0

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>
hifive-unleashed-5.1
Axel Haslam 2016-05-16 17:39:32 +02:00 committed by Greg Kroah-Hartman
parent 814ae531d1
commit 9bc63b7ff5
1 changed files with 1 additions and 1 deletions

View File

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