aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/serial/pl2303.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c
index 6ed33c7e53e2..1128e01525b1 100644
--- a/drivers/usb/serial/pl2303.c
+++ b/drivers/usb/serial/pl2303.c
@@ -622,8 +622,16 @@ static void pl2303_set_termios(struct tty_struct *tty,
622 /* For reference buf[4]=1 is 1.5 stop bits */ 622 /* For reference buf[4]=1 is 1.5 stop bits */
623 /* For reference buf[4]=2 is 2 stop bits */ 623 /* For reference buf[4]=2 is 2 stop bits */
624 if (cflag & CSTOPB) { 624 if (cflag & CSTOPB) {
625 buf[4] = 2; 625 /* NOTE: Comply with "real" UARTs / RS232:
626 dbg("%s - stop bits = 2", __func__); 626 * use 1.5 instead of 2 stop bits with 5 data bits
627 */
628 if ((cflag & CSIZE) == CS5) {
629 buf[4] = 1;
630 dbg("%s - stop bits = 1.5", __func__);
631 } else {
632 buf[4] = 2;
633 dbg("%s - stop bits = 2", __func__);
634 }
627 } else { 635 } else {
628 buf[4] = 0; 636 buf[4] = 0;
629 dbg("%s - stop bits = 1", __func__); 637 dbg("%s - stop bits = 1", __func__);