1. 16 11月, 2011 1 次提交
  2. 12 3月, 2011 1 次提交
    • W
      USB: serial: ch341: add new id · d0781383
      wangyanqing 提交于
      I picked up a new DAK-780EX(professional digitl reverb/mix system),
      which use CH341T chipset to communication with computer on 3/2011
      and the CH341T's vendor code is 1a86
      
      Looking up the CH341T's vendor and product id's I see:
      
      1a86  QinHeng Electronics
        5523  CH341 in serial mode, usb to serial port converter
      
      CH341T,CH341 are the products of the same company, maybe
      have some common hardware, and I test the ch341.c works
      well with CH341T
      
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: stable <stable@kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      d0781383
  3. 18 2月, 2011 3 次提交
  4. 23 1月, 2011 1 次提交
    • L
      USB: serial: handle Data Carrier Detect changes · d14fc1a7
      Libor Pechacek 提交于
      Alan's commit 335f8514 introduced
      .carrier_raised function in several drivers.  That also means
      tty_port_block_til_ready can now suspend the process trying to open the serial
      port when Carrier Detect is low and put it into tty_port.open_wait queue.  We
      need to wake up the process when Carrier Detect goes high and trigger TTY
      hangup when CD goes low.
      
      Some of the devices do not report modem status line changes, or at least we
      don't understand the status message, so for those we remove .carrier_raised
      again.
      Signed-off-by: NLibor Pechacek <lpechacek@suse.cz>
      Cc: stable <stable@kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      d14fc1a7
  5. 21 5月, 2010 1 次提交
  6. 30 3月, 2010 1 次提交
    • T
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking... · 5a0e3ad6
      Tejun Heo 提交于
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
      
      percpu.h is included by sched.h and module.h and thus ends up being
      included when building most .c files.  percpu.h includes slab.h which
      in turn includes gfp.h making everything defined by the two files
      universally available and complicating inclusion dependencies.
      
      percpu.h -> slab.h dependency is about to be removed.  Prepare for
      this change by updating users of gfp and slab facilities include those
      headers directly instead of assuming availability.  As this conversion
      needs to touch large number of source files, the following script is
      used as the basis of conversion.
      
        http://userweb.kernel.org/~tj/misc/slabh-sweep.py
      
      The script does the followings.
      
      * Scan files for gfp and slab usages and update includes such that
        only the necessary includes are there.  ie. if only gfp is used,
        gfp.h, if slab is used, slab.h.
      
      * When the script inserts a new include, it looks at the include
        blocks and try to put the new include such that its order conforms
        to its surrounding.  It's put in the include block which contains
        core kernel includes, in the same order that the rest are ordered -
        alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
        doesn't seem to be any matching order.
      
      * If the script can't find a place to put a new include (mostly
        because the file doesn't have fitting include block), it prints out
        an error message indicating which .h file needs to be added to the
        file.
      
      The conversion was done in the following steps.
      
      1. The initial automatic conversion of all .c files updated slightly
         over 4000 files, deleting around 700 includes and adding ~480 gfp.h
         and ~3000 slab.h inclusions.  The script emitted errors for ~400
         files.
      
      2. Each error was manually checked.  Some didn't need the inclusion,
         some needed manual addition while adding it to implementation .h or
         embedding .c file was more appropriate for others.  This step added
         inclusions to around 150 files.
      
      3. The script was run again and the output was compared to the edits
         from #2 to make sure no file was left behind.
      
      4. Several build tests were done and a couple of problems were fixed.
         e.g. lib/decompress_*.c used malloc/free() wrappers around slab
         APIs requiring slab.h to be added manually.
      
      5. The script was run on all .h files but without automatically
         editing them as sprinkling gfp.h and slab.h inclusions around .h
         files could easily lead to inclusion dependency hell.  Most gfp.h
         inclusion directives were ignored as stuff from gfp.h was usually
         wildly available and often used in preprocessor macros.  Each
         slab.h inclusion directive was examined and added manually as
         necessary.
      
      6. percpu.h was updated not to include slab.h.
      
      7. Build test were done on the following configurations and failures
         were fixed.  CONFIG_GCOV_KERNEL was turned off for all tests (as my
         distributed build env didn't work with gcov compiles) and a few
         more options had to be turned off depending on archs to make things
         build (like ipr on powerpc/64 which failed due to missing writeq).
      
         * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
         * powerpc and powerpc64 SMP allmodconfig
         * sparc and sparc64 SMP allmodconfig
         * ia64 SMP allmodconfig
         * s390 SMP allmodconfig
         * alpha SMP allmodconfig
         * um on x86_64 SMP allmodconfig
      
      8. percpu.h modifications were reverted so that it could be applied as
         a separate patch and serve as bisection point.
      
      Given the fact that I had only a couple of failures from tests on step
      6, I'm fairly confident about the coverage of this conversion patch.
      If there is a breakage, it's likely to be something in one of the arch
      headers which should be easily discoverable easily on most builds of
      the specific arch.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Guess-its-ok-by: NChristoph Lameter <cl@linux-foundation.org>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
      5a0e3ad6
  7. 03 3月, 2010 5 次提交
  8. 23 9月, 2009 1 次提交
  9. 20 9月, 2009 1 次提交
  10. 11 6月, 2009 1 次提交
  11. 18 4月, 2009 2 次提交
  12. 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
  13. 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
  14. 21 5月, 2008 1 次提交
  15. 03 5月, 2008 1 次提交
  16. 25 4月, 2008 1 次提交
  17. 26 10月, 2007 1 次提交
  18. 13 10月, 2007 2 次提交