Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 165019
b: refs/heads/master
c: 29cf1b7
h: refs/heads/master
i:
  165017: 8838935
  165015: 82309bf
v: v3
  • Loading branch information
Frank Schaefer authored and Greg Kroah-Hartman committed Sep 23, 2009
1 parent 32b88f5 commit 9eef223
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6dd81b45fd7628f3eb308f387aee696366718f25
refs/heads/master: 29cf1b72f34519413b3fafbccc9ac776eb948ede
12 changes: 10 additions & 2 deletions trunk/drivers/usb/serial/pl2303.c
Original file line number Diff line number Diff line change
Expand Up @@ -622,8 +622,16 @@ static void pl2303_set_termios(struct tty_struct *tty,
/* For reference buf[4]=1 is 1.5 stop bits */
/* For reference buf[4]=2 is 2 stop bits */
if (cflag & CSTOPB) {
buf[4] = 2;
dbg("%s - stop bits = 2", __func__);
/* NOTE: Comply with "real" UARTs / RS232:
* use 1.5 instead of 2 stop bits with 5 data bits
*/
if ((cflag & CSIZE) == CS5) {
buf[4] = 1;
dbg("%s - stop bits = 1.5", __func__);
} else {
buf[4] = 2;
dbg("%s - stop bits = 2", __func__);
}
} else {
buf[4] = 0;
dbg("%s - stop bits = 1", __func__);
Expand Down

0 comments on commit 9eef223

Please sign in to comment.