Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 143640
b: refs/heads/master
c: 20aa9e9
h: refs/heads/master
v: v3
  • Loading branch information
Alan Cox authored and Greg Kroah-Hartman committed Apr 17, 2009
1 parent 4b9e3bd commit c1498c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 26 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: 7cf94029bc0ba99f85a95f19d6823391dffbcf5a
refs/heads/master: 20aa9e9b5465a2566e23d78643735dfae3277dab
28 changes: 3 additions & 25 deletions trunk/drivers/staging/uc2322/aten2011.c
Original file line number Diff line number Diff line change
Expand Up @@ -603,10 +603,9 @@ static void ATEN2011_bulk_out_data_callback(struct urb *urb)

tty = tty_port_tty_get(&ATEN2011_port->port->port);

if (tty && ATEN2011_port->open) {
if (tty && ATEN2011_port->open)
/* tell the tty driver that something has changed */
wake_up_interruptible(&tty->write_wait);
}
tty_wakeup(tty);

/* schedule_work(&ATEN2011_port->port->work); */
tty_kref_put(tty);
Expand Down Expand Up @@ -825,12 +824,6 @@ static int ATEN2011_open(struct tty_struct *tty, struct usb_serial_port *port,
status = 0;
status = set_reg_sync(port, ATEN2011_port->ControlRegOffset, Data);

/* force low_latency on so that our tty_push actually forces *
* the data through,otherwise it is scheduled, and with *
* high data rates (like with OHCI) data can get lost. */

if (tty)
tty->low_latency = 1;
/*
* Check to see if we've set up our endpoint info yet
* (can't set it up in ATEN2011_startup as the structures
Expand Down Expand Up @@ -1473,22 +1466,7 @@ static void ATEN2011_set_termios(struct tty_struct *tty,

cflag = tty->termios->c_cflag;

if (!cflag) {
dbg("%s %s", __func__, "cflag is NULL");
return;
}

/* check that they really want us to change something */
if (old_termios) {
if ((cflag == old_termios->c_cflag) &&
(RELEVANT_IFLAG(tty->termios->c_iflag) ==
RELEVANT_IFLAG(old_termios->c_iflag))) {
dbg("%s", "Nothing to change");
return;
}
}

dbg("%s - clfag %08x iflag %08x", __func__,
dbg("%s - cflag %08x iflag %08x", __func__,
tty->termios->c_cflag, RELEVANT_IFLAG(tty->termios->c_iflag));

if (old_termios) {
Expand Down

0 comments on commit c1498c9

Please sign in to comment.