Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 104644
b: refs/heads/master
c: 72e2741
h: refs/heads/master
v: v3
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Jul 22, 2008
1 parent a6641ee commit f3f860c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 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: 80359a9c5c03d585686e2596c9ee46703eb03047
refs/heads/master: 72e2741256e65f2adcc03754523d6a2fdb260e4a
12 changes: 4 additions & 8 deletions trunk/drivers/usb/serial/whiteheat.c
Original file line number Diff line number Diff line change
Expand Up @@ -671,11 +671,8 @@ static int whiteheat_open(struct tty_struct *tty,
goto exit;
}

if (tty) {
old_term.c_cflag = ~tty->termios->c_cflag;
old_term.c_iflag = ~tty->termios->c_iflag;
whiteheat_set_termios(tty, port, &old_term);
}
if (tty)
firm_setup_port(tty);

/* Work around HCD bugs */
usb_clear_halt(port->serial->dev, port->read_urb->pipe);
Expand Down Expand Up @@ -926,7 +923,6 @@ static int whiteheat_ioctl(struct tty_struct *tty, struct file *file,
static void whiteheat_set_termios(struct tty_struct *tty,
struct usb_serial_port *port, struct ktermios *old_termios)
{
/* FIXME */
firm_setup_port(tty);
}

Expand Down Expand Up @@ -1322,7 +1318,7 @@ static int firm_set_dtr(struct usb_serial_port *port, __u8 onoff)

dtr_command.port = port->number - port->serial->minor + 1;
dtr_command.state = onoff;
return firm_send_command(port, WHITEHEAT_SET_RTS,
return firm_send_command(port, WHITEHEAT_SET_DTR,
(__u8 *)&dtr_command, sizeof(dtr_command));
}

Expand All @@ -1333,7 +1329,7 @@ static int firm_set_break(struct usb_serial_port *port, __u8 onoff)

break_command.port = port->number - port->serial->minor + 1;
break_command.state = onoff;
return firm_send_command(port, WHITEHEAT_SET_RTS,
return firm_send_command(port, WHITEHEAT_SET_BREAK,
(__u8 *)&break_command, sizeof(break_command));
}

Expand Down

0 comments on commit f3f860c

Please sign in to comment.