1. 13 7月, 2009 4 次提交
  2. 11 7月, 2009 3 次提交
  3. 26 6月, 2009 1 次提交
  4. 16 6月, 2009 24 次提交
  5. 13 6月, 2009 1 次提交
  6. 11 6月, 2009 7 次提交
    • E
      sierra: driver interface blacklisting · 4db2299d
      Elina Pasheva 提交于
      Interface blacklisting is necessary for non-serial interfaces that are handled
      by a different driver. The interface blacklisting is implemented in sierra
      driver per device. Each device in need of a blacklist has a static information
      array kept in the driver. This array contains the interface numbers that are
      blacklisted. The pointer for each blacklist array and the length
      of that blacklist are 'bundled' in data structure sierra_iface_info. A pointer
      to this information is set in id_table when the device is added to the id_table.
      
      The following is summary of changes we have made to sierra.c driver in
      this patch dealing with interface blacklisting support:
      - Added data structure sierra_iface_info and function is_blacklisted()
      to support blacklisting
      - Modified sierra_probe() to handle blacklisted interfaces accordingly
      - Improved comments in id_table
      - Added new device in id_table with blacklist interface support
      Signed-off-by: NElina Pasheva <epasheva@sierrawireless.com>
      Signed-off-by: NAlan Cox <alan@linux.intel.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      4db2299d
    • E
      sierra: driver urb handling improvements · b9a44bc1
      Elina Pasheva 提交于
      [Folded from eight patches into one as the original set according to the
       author "All of the patches need to be applied to obtain a working product"
       so keeping them split seems unhelpful
      
       Merge fixes done versus other conflicting changes and moved the
       spin_lock_init from open to setup time -- Alan]
      
      Summary of the changes and code re-organization in this patch:
      
      - The memory for urbs is allocated and urbs are submitted only for the active
        interfaces (instead of pre-allocating these for all interfaces). This will
        save memory especially in the case of using composite devices.
      - The code has been re-organized and functionality has been extracted from
        sierra_startup(), sierra_shutdown(), sierra_open(), sierra_close() and added
        in helper functions sierra_release_urb(), sierra_stop_rx_urbs(),
        sierra_submit_rx_urbs() and sierra_setup_urb()
      
      - Added function sierra_release_urb() to free an urb and its transfer
      buffer.
      - Removed unecessary include file reference and comment.
      - Added function sierra_stop_rx_urbs() that takes care of the release of
      receive and interrupt urbs. This function is to be called by sierra_close()
      whenever an interface is de-activated.
      - Added new function sierra_submit_rx_urbs() that handles the submission of
      receive urbs and interrupt urbs (if any) during the interface activation.
      This function is to be called by sierra_open(). Added a second parameter to
      pass the memory allocation (as suggested by Oliver Neukum) so that this
      function can be used in post_reset() and resume().
      - Added new function sierra_setup_urb() that contains the functionality to
      allocate an urb, fill bulk urb using the supplied memory allocation flag
      and release urb upon error. Added parameter so that the caller pass the
      memory allocation flag for flexibility.
      - Moved sierra_close() before sierra_open() to resolve dependencies
      introduced by the code reorganization.
      - Modified sierra_close() to call sierra_stop_rx_urbs() and
      sierra_release_urb() functions added in previous patch.
      - Modified sierra_open() to call sierra_setup_urb() and sierra_submit_rx_urbs()
      functions; note urbs are allocated and submitted for each activated interface.
      - Modified sierra_startup() so that allocation of urbs happens whenever an
      interface is activated (urb allocation is moved to sierra_open()).
      - Modified sierra_shutdown() so that urbs are freed whenever an interface is
      de-activated (urb freeing moved to sierra_close() as shown in previous patch
      from the series)
      - Removed unecessary data structure from sierra_port_private_data
      - Suppress an entry in logs by not re-submitting an urb when usb_submit_urb()
      returns -EPERM, as this shows that usb_kill_urb() is running (as suggested by
      Oliver Neukum)
      Signed-off-by: NElina Pasheva <epasheva@sierrawireless.com>
      Signed-off-by: NAlan Cox <alan.cox@linux.intel.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      b9a44bc1
    • A
      tty: resolve some sierra breakage · 00b040de
      Alan Cox 提交于
      The various merges into the sierra driver inadvertently undid
      commit 212b8f0c by Elina Pasheva
      <epasheva@sierrawireless.com>. Put it back so the OBEX port works again.
      Signed-off-by: NAlan Cox <alan@linux.intel.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      00b040de
    • A
      ftdi_sio: don't override modem bits · 7e9cd3a6
      Alan Cox 提交于
      The new open/close logic handles DTR and friends, so don't do it in our own
      open routine as well.
      Signed-off-by: NAlan Cox <alan@lxorguk.ukuu.org.uk>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      7e9cd3a6
    • A
      ft232: support the ASYNC_LOW_LATENCY flag · 557aaa7f
      Alan Cox 提交于
      This allows users to use the standard setserial command with this FT232
      feature as well as obscure chip specific interfaces we have now. We keep
      track of and respect the sysfs value for non-low-latency cases. In theory we
      could do smart stuff with VTIME and the like but this seems of questionable
      worth.
      
      Closes-bug: http://bugzilla.kernel.org/show_bug.cgi?id=9120
      Signed-off-by: Alan Cox <alan@linux.intel.com)
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      557aaa7f
    • C
      USB: CP210X Replace CP2101 with CP210x · 4cc27bd6
      Craig Shelley 提交于
      This patch replaces the string "CP2101" with "CP210x" within cp210x.c
      This is to reduce confusion about the fact that the driver is actually
      compatible with CP2101, CP2102 and CP2103 devices.
      Signed-off-by: NCraig Shelley <craig@microtron.org.uk>
      
      (Fixed some collisions merging)
      Signed-off-by: NAlan Cox <alan@linux.intel.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      4cc27bd6
    • C
      USB: CP210X Use official request code definitions · 93ef1f1f
      Craig Shelley 提交于
      The CP210X driver was developed without official device specifications.
      This has lead to an incorrect assumption that all GET request codes are
      equal to the corresponding SET request code +1.
      This patch removes this incorrect assumption, and uses request code
      definitions based on the updated GPL driver from SiLabs.
      This modification is needed before extended functionality such as GPIO
      on CP2103 can be supported.
      Signed-off-by: NCraig Shelley <craig@microtron.org.uk>
      Signed-off-by: NAlan Cox <alan@linux.intel.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      93ef1f1f