Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 275817
b: refs/heads/master
c: 583182b
h: refs/heads/master
i:
  275815: c18c330
v: v3
  • Loading branch information
Bart Hartgers authored and Greg Kroah-Hartman committed Nov 14, 2011
1 parent fd6f565 commit 001f820
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: ab570da26eec4e840dc1d18f45ab9d64bae49a5d
refs/heads/master: 583182ba5f02c8c9be82ea550f2051eaec15b975
10 changes: 5 additions & 5 deletions trunk/drivers/usb/serial/ark3116.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ static int debug;
* Version information
*/

#define DRIVER_VERSION "v0.6"
#define DRIVER_VERSION "v0.7"
#define DRIVER_AUTHOR "Bart Hartgers <bart.hartgers+ark3116@gmail.com>"
#define DRIVER_DESC "USB ARK3116 serial/IrDA driver"
#define DRIVER_DEV_DESC "ARK3116 RS232/IrDA"
Expand Down Expand Up @@ -380,10 +380,6 @@ static int ark3116_open(struct tty_struct *tty, struct usb_serial_port *port)
goto err_out;
}

/* setup termios */
if (tty)
ark3116_set_termios(tty, port, NULL);

/* remove any data still left: also clears error state */
ark3116_read_reg(serial, UART_RX, buf);

Expand All @@ -406,6 +402,10 @@ static int ark3116_open(struct tty_struct *tty, struct usb_serial_port *port)
/* enable DMA */
ark3116_write_reg(port->serial, UART_FCR, UART_FCR_DMA_SELECT);

/* setup termios */
if (tty)
ark3116_set_termios(tty, port, NULL);

err_out:
kfree(buf);
return result;
Expand Down

0 comments on commit 001f820

Please sign in to comment.