diff options
author | Johan Hovold <jhovold@gmail.com> | 2009-10-07 14:05:04 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-10-09 16:52:04 -0400 |
commit | 0cbd81a9f6bac734ac3266687bf027af1e395270 (patch) | |
tree | 470e6c2343c7f80712eef3855a31fe5e752d3a7e /drivers/usb/serial | |
parent | 36a07902c2134649c4af7f07980413ffb1a56085 (diff) |
USB: ftdi_sio: remove tty->low_latency
Fixes tty_flip_buffer_push being called from hard interrupt context with
low_latency set.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial')
-rw-r--r-- | drivers/usb/serial/ftdi_sio.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c index 4f883b1773d0..0ac2c2f540c9 100644 --- a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial/ftdi_sio.c | |||
@@ -1234,7 +1234,6 @@ static int set_serial_info(struct tty_struct *tty, | |||
1234 | (new_serial.flags & ASYNC_FLAGS)); | 1234 | (new_serial.flags & ASYNC_FLAGS)); |
1235 | priv->custom_divisor = new_serial.custom_divisor; | 1235 | priv->custom_divisor = new_serial.custom_divisor; |
1236 | 1236 | ||
1237 | tty->low_latency = (priv->flags & ASYNC_LOW_LATENCY) ? 1 : 0; | ||
1238 | write_latency_timer(port); | 1237 | write_latency_timer(port); |
1239 | 1238 | ||
1240 | check_and_exit: | 1239 | check_and_exit: |
@@ -1704,9 +1703,6 @@ static int ftdi_open(struct tty_struct *tty, struct usb_serial_port *port) | |||
1704 | priv->rx_bytes = 0; | 1703 | priv->rx_bytes = 0; |
1705 | spin_unlock_irqrestore(&priv->rx_lock, flags); | 1704 | spin_unlock_irqrestore(&priv->rx_lock, flags); |
1706 | 1705 | ||
1707 | if (tty) | ||
1708 | tty->low_latency = (priv->flags & ASYNC_LOW_LATENCY) ? 1 : 0; | ||
1709 | |||
1710 | write_latency_timer(port); | 1706 | write_latency_timer(port); |
1711 | 1707 | ||
1712 | /* No error checking for this (will get errors later anyway) */ | 1708 | /* No error checking for this (will get errors later anyway) */ |