1. 23 9月, 2009 1 次提交
  2. 20 9月, 2009 1 次提交
  3. 11 6月, 2009 1 次提交
  4. 18 4月, 2009 2 次提交
  5. 25 3月, 2009 2 次提交
    • M
      USB: ch341 serial: fix port number changed after resume · 1ded7ea4
      Ming Lei 提交于
      This patch fixes the following bug:
      	.plug ch341 usb serial port into a hub port;
      	.ch341 driver bound to the device and /dev/ttyUSB0 comes
      	.open /dev/ttyUSB0 by minicom and we can use the serial successfully
      	.suspend the ch341 usb serial device(such as: echo suspend > power/level)
      	.resume the ch341 usb serial device (such as: echo on > power/level)
      	.new port /dev/ttyUSB1 comes ,and the original /dev/ttyUSB0 still exists,
      but is no longer usable by minicom
      
      The patch adds suspend and resume callback to ch341 usb driver to prevent it
      from unbinding during suspend. The /dev/ttyUSB0 is not released until being
      closed, so /dev/ttyUSB1 comes after resume, and the original /dev/ttyUSB0 is
      no longer usable by minicom. It is really a mess for a minicom user.
      
      This patch also adds the reset_resume callback to make it usable after resuming
      from STR or hibernation, for generally STR or hibernation will make the vbus
      of root-hub lost.
      
      Finally enable the driver's supports_autosuspend, for the device is in working
      order with it.
      Signed-off-by: NMing Lei <tom.leiming@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      1ded7ea4
    • W
      USB: usb-serial ch341: support for DTR/RTS/CTS · 664d5df9
      Werner Cornelius 提交于
      Fixup of Werner Cornelius patch to the ch341 USB-serial driver, which adds:
      - support all baudrates, not just a hard-coded set
      - support for controlling DTR, RTS and CTS
      
      Features still missing:
      - character length other than 8 bits
      - parity settings
      - break control
      
      I adapted his patch for the new usb_serial API introduced in 2.6.25-git8 by
      Alan Cox on 22 July 2008. Non-compliance to the new API was a reason for
      refusing a similar patch from Tollef Fog Heen.
      
      Usage example by Tollef Fog Heen :
              TEMPer USB thermometer <http://err.no/src/TEMPer.c>
      Signed-off-by: NWerner Cornelius <Werner.Cornelius@cornelius-consult.de>
      Signed-off-by: NBoris Hajduk <boris@hajduk.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      664d5df9
  6. 23 7月, 2008 1 次提交
    • A
      usb_serial: API all change · 95da310e
      Alan Cox 提交于
      USB serial likes to use port->tty back pointers for the real work it does and
      to do so without any actual locking. Unfortunately when you consider hangup
      events, hangup/parallel reopen or even worse hangup followed by parallel close
      events the tty->port and port->tty pointers are not guaranteed to be the same
      as port->tty is the active tty while tty->port is the port the tty may or
      may not still be attached to.
      
      So rework the entire API to pass the tty struct. For console cases we need
      to pass both for now. This shows up multiple drivers that immediately crash
      with USB console some of which have been fixed in the process.
      
      Longer term we need a proper tty as console abstraction
      Signed-off-by: NAlan Cox <alan@redhat.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      95da310e
  7. 21 5月, 2008 1 次提交
  8. 03 5月, 2008 1 次提交
  9. 25 4月, 2008 1 次提交
  10. 26 10月, 2007 1 次提交
  11. 13 10月, 2007 2 次提交