diff options
author | Johan Hovold <jhovold@gmail.com> | 2013-06-26 10:47:23 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-07-23 19:21:50 -0400 |
commit | d7be62211125c85fa1dd796e92aadce84961a502 (patch) | |
tree | 5f8264375419cc85e33a7ed57c93271a2dabe2ab /drivers/usb/serial/oti6858.c | |
parent | f5f45304512fa167883dbf7cc23ff92008b173e7 (diff) |
USB: serial: set drain delay at port probe
The port drain delay is constant and should be set at port probe rather
than open.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/oti6858.c')
-rw-r--r-- | drivers/usb/serial/oti6858.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/serial/oti6858.c b/drivers/usb/serial/oti6858.c index cf509c8c1aa1..baa2ea59b921 100644 --- a/drivers/usb/serial/oti6858.c +++ b/drivers/usb/serial/oti6858.c | |||
@@ -343,6 +343,8 @@ static int oti6858_port_probe(struct usb_serial_port *port) | |||
343 | 343 | ||
344 | usb_set_serial_port_data(port, priv); | 344 | usb_set_serial_port_data(port, priv); |
345 | 345 | ||
346 | port->port.drain_delay = 256; /* FIXME: check the FIFO length */ | ||
347 | |||
346 | return 0; | 348 | return 0; |
347 | } | 349 | } |
348 | 350 | ||
@@ -558,7 +560,7 @@ static int oti6858_open(struct tty_struct *tty, struct usb_serial_port *port) | |||
558 | /* setup termios */ | 560 | /* setup termios */ |
559 | if (tty) | 561 | if (tty) |
560 | oti6858_set_termios(tty, port, &tmp_termios); | 562 | oti6858_set_termios(tty, port, &tmp_termios); |
561 | port->port.drain_delay = 256; /* FIXME: check the FIFO length */ | 563 | |
562 | return 0; | 564 | return 0; |
563 | } | 565 | } |
564 | 566 | ||