Skip to content

Commit 075707c

Browse files
Konstantin Shkolnyysashalevin
authored andcommitted
USB: serial: cp210x: fix hardware flow-control disable
[ Upstream commit a377f9e ] A bug in the CRTSCTS handling caused RTS to alternate between CRTSCTS=0 => "RTS is transmit active signal" and CRTSCTS=1 => "RTS is used for receive flow control" instead of CRTSCTS=0 => "RTS is statically active" and CRTSCTS=1 => "RTS is used for receive flow control" This only happened after first having enabled CRTSCTS. Signed-off-by: Konstantin Shkolnyy <[email protected]> Fixes: 39a66b8 ("[PATCH] USB: CP2101 Add support for flow control") Cc: stable <[email protected]> [johan: reword commit message ] Signed-off-by: Johan Hovold <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent b6e4114 commit 075707c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/serial/cp210x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ static void cp210x_set_termios(struct tty_struct *tty,
785785
} else {
786786
modem_ctl[0] &= ~0x7B;
787787
modem_ctl[0] |= 0x01;
788-
modem_ctl[1] |= 0x40;
788+
modem_ctl[1] = 0x40;
789789
dev_dbg(dev, "%s - flow control = NONE\n", __func__);
790790
}
791791

0 commit comments

Comments
 (0)