]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
greybus: uart fix missing negation on DTR setting
authorAxel Haslam <ahaslam@baylibre.com>
Mon, 16 May 2016 15:39:32 +0000 (17:39 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 18 May 2016 23:53:54 +0000 (16:53 -0700)
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>
drivers/staging/greybus/uart.c

index aa28ce5c4fb09363fe44e130061ea0ef4130a681..75fa527acf158969c7be6b8479742d6994a51440 100644 (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;
        }