• Johan Hovold's avatar
    USB: ftdi_sio: re-implement read processing · c3c7e4b9
    Johan Hovold authored
    commit cc01f17d upstream.
    
    - Re-structure read processing.
     - Kill obsolete work queue and always push to tty in completion handler.
     - Use tty_insert_flip_string instead of per character push when
       possible.
     - Fix stalled-read regression in 2.6.31 by using urb status to
       determine when port is closed rather than port count.
     - Fix race with open/close by checking ASYNCB_INITIALIZED in
       unthrottle.
     - Kill private rx_flag and lock and use throttle flags in
       usb_serial_port instead.
    Signed-off-by: default avatarJohan Hovold <jhovold@gmail.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    c3c7e4b9
ftdi_sio.c 84.8 KB