lkml.org 
[lkml]   [2009]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[07/46] USB: ftdi_sio: remove tty->low_latency
    2.6.31-stable review patch.  If anyone has any objections, please let us know.

    ------------------
    From: Johan Hovold <jhovold@gmail.com>

    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 | 4 ----
    1 file changed, 4 deletions(-)

    --- a/drivers/usb/serial/ftdi_sio.c
    +++ b/drivers/usb/serial/ftdi_sio.c
    @@ -1235,7 +1235,6 @@ static int set_serial_info(struct tty_st
    (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 *
    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) */



    \
     
     \ /
      Last update: 2009-10-16 19:47    [W:0.022 / U:31.524 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site