1. 27 7月, 2010 1 次提交
  2. 30 6月, 2010 1 次提交
  3. 05 6月, 2010 1 次提交
    • D
      USB: ftdi_sio: fix DTR/RTS line modes · 6a1a82df
      Daniel Mack 提交于
      Call set_mctrl() and clear_mctrl() according to the flow control mode
      selected. This makes serial communication for FT232 connected devices
      work when CRTSCTS is not set.
      
      This fixes a regression introduced by 4175f3e3 ("tty_port: If we are
      opened non blocking we still need to raise the carrier"). This patch
      calls the low-level driver's dtr_rts() function which consequently sets
      TIOCM_DTR | TIOCM_RTS. A later call to set_termios() without CRTSCTS in
      cflags, however, does not reset these bits, and so data is not actually
      sent out on the serial wire.
      Signed-off-by: NDaniel Mack <daniel@caiaq.de>
      Cc: Johan Hovold <jhovold@gmail.com>
      Cc: Alan Cox <alan@linux.intel.com>
      Cc: stable <stable@kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      6a1a82df
  4. 21 5月, 2010 11 次提交
  5. 19 3月, 2010 2 次提交
  6. 03 3月, 2010 16 次提交
  7. 17 2月, 2010 2 次提交
  8. 24 12月, 2009 1 次提交
  9. 12 12月, 2009 2 次提交
  10. 01 12月, 2009 1 次提交
  11. 10 10月, 2009 2 次提交
    • J
      USB: ftdi_sio: re-implement read processing · cc01f17d
      Johan Hovold 提交于
      - 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: NJohan Hovold <jhovold@gmail.com>
      Cc: stable <stable@kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      cc01f17d
    • J
      USB: ftdi_sio: clean up read completion handler · e63e278b
      Johan Hovold 提交于
      Remove superfluous error checks in completion handler:
      
       - No need to check private data and urb pointers as we check urb-status
         before dereferencing priv (which is not freed until urb has been killed
         on close).
       - No need to check tty as it is checked again when processing.
       - No need to check urb->number_of_packets on bulk urb.
      
      Note that both private data and tty are checked again before processing
      (possibly from work queue which also is cancelled on close).
      Signed-off-by: NJohan Hovold <jhovold@gmail.com>
      Cc: stable <stable@kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      e63e278b