Commit 9631595a authored by Johan Hovold's avatar Johan Hovold

USB: mxu11x0: fix modem-control handling on B0-transitions

Make sure to raise DTR and RTS on transitions from B0 and leave the
other bits unchanged.
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
parent e69f7a67
......@@ -595,7 +595,7 @@ static void mxu1_set_termios(struct tty_struct *tty,
if (C_BAUD(tty) == B0)
mcr &= ~(MXU1_MCR_DTR | MXU1_MCR_RTS);
else if (old_termios && (old_termios->c_cflag & CBAUD) == B0)
mcr |= ~(MXU1_MCR_DTR | MXU1_MCR_RTS);
mcr |= MXU1_MCR_DTR | MXU1_MCR_RTS;
status = mxu1_set_mcr(port, mcr);
if (status)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment