mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 08:46:46 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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