浏览代码

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: Johan Hovold <johan@kernel.org>
Johan Hovold 9 年之前
父节点
当前提交
9631595a25
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/usb/serial/mxu11x0.c

+ 1 - 1
drivers/usb/serial/mxu11x0.c

@@ -595,7 +595,7 @@ static void mxu1_set_termios(struct tty_struct *tty,
 	if (C_BAUD(tty) == B0)
 	if (C_BAUD(tty) == B0)
 		mcr &= ~(MXU1_MCR_DTR | MXU1_MCR_RTS);
 		mcr &= ~(MXU1_MCR_DTR | MXU1_MCR_RTS);
 	else if (old_termios && (old_termios->c_cflag & CBAUD) == B0)
 	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);
 	status = mxu1_set_mcr(port, mcr);
 	if (status)
 	if (status)