Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113428
b: refs/heads/master
c: 4ad6de0
h: refs/heads/master
v: v3
  • Loading branch information
Jason Wessel authored and Linus Torvalds committed Oct 13, 2008
1 parent b8aa887 commit 5e69a4e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 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: 9bde10a4b8c54804236d3d6b4b75e98825a921e7
refs/heads/master: 4ad6de0b3f5d050b70e4c94a0cc8b26503f8cf28
11 changes: 0 additions & 11 deletions trunk/drivers/usb/serial/pl2303.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ struct pl2303_private {
wait_queue_head_t delta_msr_wait;
u8 line_control;
u8 line_status;
u8 termios_initialized;
enum pl2303_type type;
};

Expand Down Expand Up @@ -526,16 +525,6 @@ static void pl2303_set_termios(struct tty_struct *tty,

dbg("%s - port %d", __func__, port->number);

spin_lock_irqsave(&priv->lock, flags);
if (!priv->termios_initialized) {
*(tty->termios) = tty_std_termios;
tty->termios->c_cflag = B9600 | CS8 | CREAD | HUPCL | CLOCAL;
tty->termios->c_ispeed = 9600;
tty->termios->c_ospeed = 9600;
priv->termios_initialized = 1;
}
spin_unlock_irqrestore(&priv->lock, flags);

/* The PL2303 is reported to lose bytes if you change
serial settings even to the same values as before. Thus
we actually need to filter in this specific case */
Expand Down

0 comments on commit 5e69a4e

Please sign in to comment.