Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 82249
b: refs/heads/master
c: 65d063a
h: refs/heads/master
i:
  82247: 692c389
v: v3
  • Loading branch information
Alan Cox authored and Greg Kroah-Hartman committed Feb 1, 2008
1 parent 1e4a12f commit f2bce08
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 21 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: 487dc9225a8e7cc522177316abee7b1e272a2863
refs/heads/master: 65d063ab21feea8cf65d64fba50a5c4fa7bfd6be
28 changes: 8 additions & 20 deletions trunk/drivers/usb/serial/mos7720.c
Original file line number Diff line number Diff line change
Expand Up @@ -1040,11 +1040,6 @@ static void change_port_settings(struct moschip_port *mos7720_port,

tty = mos7720_port->port->tty;

if ((!tty) || (!tty->termios)) {
dbg("%s - no tty structures", __FUNCTION__);
return;
}

dbg("%s: Entering ..........", __FUNCTION__);

lData = UART_LCR_WLEN8;
Expand Down Expand Up @@ -1175,7 +1170,10 @@ static void change_port_settings(struct moschip_port *mos7720_port,

dbg("%s - baud rate = %d", __FUNCTION__, baud);
status = send_cmd_write_baud_rate(mos7720_port, baud);

/* FIXME: needs to write actual resulting baud back not just
blindly do so */
if (cflag & CBAUD)
tty_encode_baud_rate(tty, baud, baud);
/* Enable Interrupts */
data = 0x0c;
send_mos_cmd(serial, MOS_WRITE, port_number, UART_IER, &data);
Expand Down Expand Up @@ -1214,10 +1212,6 @@ static void mos7720_set_termios(struct usb_serial_port *port,

tty = port->tty;

if (!port->tty || !port->tty->termios) {
dbg("%s - no tty or termios", __FUNCTION__);
return;
}

if (!mos7720_port->open) {
dbg("%s - port not opened", __FUNCTION__);
Expand All @@ -1228,19 +1222,13 @@ static void mos7720_set_termios(struct usb_serial_port *port,

cflag = tty->termios->c_cflag;

if (!cflag) {
printk("%s %s\n",__FUNCTION__,"cflag is NULL");
return;
}

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

if (old_termios)
dbg("%s - old clfag %08x old iflag %08x", __FUNCTION__,
old_termios->c_cflag,
RELEVANT_IFLAG(old_termios->c_iflag));
dbg("%s - old cflag %08x old iflag %08x", __FUNCTION__,
old_termios->c_cflag,
RELEVANT_IFLAG(old_termios->c_iflag));

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

Expand Down

0 comments on commit f2bce08

Please sign in to comment.