]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
USB: ftdi_sio: remove tty->low_latency
authorJohan Hovold <jhovold@gmail.com>
Wed, 7 Oct 2009 18:05:04 +0000 (20:05 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 22 Oct 2009 22:11:46 +0000 (15:11 -0700)
commit 0cbd81a9f6bac734ac3266687bf027af1e395270 upstream.

Fixes tty_flip_buffer_push being called from hard interrupt context with
low_latency set.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/ftdi_sio.c

index 0cc78f9ad9eb979e4df441d71ec0f67dff2ba39d..f8187a18f74494393aa7845bd369fe84014caca2 100644 (file)
@@ -1235,7 +1235,6 @@ static int set_serial_info(struct tty_struct *tty,
                                        (new_serial.flags & ASYNC_FLAGS));
        priv->custom_divisor = new_serial.custom_divisor;
 
-       tty->low_latency = (priv->flags & ASYNC_LOW_LATENCY) ? 1 : 0;
        write_latency_timer(port);
 
 check_and_exit:
@@ -1706,9 +1705,6 @@ static int ftdi_open(struct tty_struct *tty,
        priv->rx_bytes = 0;
        spin_unlock_irqrestore(&priv->rx_lock, flags);
 
-       if (tty)
-               tty->low_latency = (priv->flags & ASYNC_LOW_LATENCY) ? 1 : 0;
-
        write_latency_timer(port);
 
        /* No error checking for this (will get errors later anyway) */