Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 165018
b: refs/heads/master
c: 6dd81b4
h: refs/heads/master
v: v3
  • Loading branch information
Frank Schaefer authored and Greg Kroah-Hartman committed Sep 23, 2009
1 parent 8838935 commit 32b88f5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 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: 25b8286805e856c8c7fda127018e31032c918015
refs/heads/master: 6dd81b45fd7628f3eb308f387aee696366718f25
18 changes: 14 additions & 4 deletions trunk/drivers/usb/serial/pl2303.c
Original file line number Diff line number Diff line change
Expand Up @@ -636,11 +636,21 @@ static void pl2303_set_termios(struct tty_struct *tty,
/* For reference buf[5]=3 is mark parity */
/* For reference buf[5]=4 is space parity */
if (cflag & PARODD) {
buf[5] = 1;
dbg("%s - parity = odd", __func__);
if (cflag & CMSPAR) {
buf[5] = 3;
dbg("%s - parity = mark", __func__);
} else {
buf[5] = 1;
dbg("%s - parity = odd", __func__);
}
} else {
buf[5] = 2;
dbg("%s - parity = even", __func__);
if (cflag & CMSPAR) {
buf[5] = 4;
dbg("%s - parity = space", __func__);
} else {
buf[5] = 2;
dbg("%s - parity = even", __func__);
}
}
} else {
buf[5] = 0;
Expand Down

0 comments on commit 32b88f5

Please sign in to comment.