1. 11 6月, 2009 3 次提交
    • 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
      tty: Bring the usb tty port structure into more use · 335f8514
      Alan Cox 提交于
      This allows us to clean stuff up, but is probably also going to cause
      some app breakage with buggy apps as we now implement proper POSIX behaviour
      for USB ports matching all the other ports. This does also mean other apps
      that break on USB will now work properly.
      Signed-off-by: NAlan Cox <alan@lxorguk.ukuu.org.uk>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      335f8514
  2. 24 4月, 2009 2 次提交
  3. 03 1月, 2009 1 次提交
  4. 18 10月, 2008 2 次提交
  5. 14 10月, 2008 1 次提交
    • A
      tty: usb-serial krefs · 4a90f09b
      Alan Cox 提交于
      Use kref in the USB serial drivers so that we don't free tty structures
      from under the URB receive handlers as has historically been the case if
      you were unlucky. This also gives us a framework for general tty drivers to
      use tty_port objects and refcount.
      
      Contains two err->dev_err changes merged together to fix clashes in the
      -next tree.
      Signed-off-by: NAlan Cox <alan@redhat.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      4a90f09b
  6. 24 9月, 2008 3 次提交
    • K
      USB Serial: Sierra: Add MC8785 VID/PID · b77a5c70
      Kevin Lloyd 提交于
      Add another MC8785 VID/PID
      Signed-off-by: NKevin Lloyd <klloyd@sierrawireless.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      b77a5c70
    • T
      USB: Correct Sierra Wireless USB EVDO Modem Device ID · f8834f1f
      Tony Murray 提交于
      I was trying to figure out why my device wasn't supported by the
      drivers/usb/serial/sierra.c driver, while looking throught the device
      IDs I spotted what I believe to be a typo in the device IDs.  Please
      apply the following patch
      
      If you look down further, there is another HP wireless broadband card,
      which has a vendor ID of 03f0, like my device.  Below is my "lsusb -v
      -d 03f0:1b1d".
      
      Bus 001 Device 005: ID 03f0:1b1d Hewlett-Packard
      Device Descriptor:
        bLength                18
        bDescriptorType         1
        bcdUSB               1.10
        bDeviceClass            0 (Defined at Interface level)
        bDeviceSubClass         0
        bDeviceProtocol         0
        bMaxPacketSize0        64
        idVendor           0x03f0 Hewlett-Packard
        idProduct          0x1b1d
        bcdDevice            0.01
        iManufacturer           1 HP
        iProduct                2 HP ev2200 1xEV-DO Broadband Wireless Module
        iSerial                 0
        bNumConfigurations      1
        Configuration Descriptor:
          bLength                 9
          bDescriptorType         2
          wTotalLength           67
          bNumInterfaces          1
          bConfigurationValue     1
          iConfiguration          0
          bmAttributes         0xe0
            Self Powered
            Remote Wakeup
          MaxPower                0mA
          Interface Descriptor:
            bLength                 9
            bDescriptorType         4
            bInterfaceNumber        0
            bAlternateSetting       0
            bNumEndpoints           7
            bInterfaceClass       255 Vendor Specific Class
            bInterfaceSubClass    255 Vendor Specific Subclass
            bInterfaceProtocol    255 Vendor Specific Protocol
            iInterface              3 Data Interface
            Endpoint Descriptor:
              bLength                 7
              bDescriptorType         5
              bEndpointAddress     0x81  EP 1 IN
              bmAttributes            3
                Transfer Type            Interrupt
                Synch Type               None
                Usage Type               Data
              wMaxPacketSize     0x0010  1x 16 bytes
              bInterval             128
            Endpoint Descriptor:
              bLength                 7
              bDescriptorType         5
              bEndpointAddress     0x82  EP 2 IN
              bmAttributes            2
                Transfer Type            Bulk
                Synch Type               None
                Usage Type               Data
              wMaxPacketSize     0x0040  1x 64 bytes
              bInterval               0
            Endpoint Descriptor:
              bLength                 7
              bDescriptorType         5
              bEndpointAddress     0x02  EP 2 OUT
              bmAttributes            2
                Transfer Type            Bulk
                Synch Type               None
                Usage Type               Data
              wMaxPacketSize     0x0040  1x 64 bytes
              bInterval               0
            Endpoint Descriptor:
              bLength                 7
              bDescriptorType         5
              bEndpointAddress     0x84  EP 4 IN
              bmAttributes            2
                Transfer Type            Bulk
                Synch Type               None
                Usage Type               Data
              wMaxPacketSize     0x0040  1x 64 bytes
              bInterval               0
            Endpoint Descriptor:
              bLength                 7
              bDescriptorType         5
              bEndpointAddress     0x04  EP 4 OUT
              bmAttributes            2
                Transfer Type            Bulk
                Synch Type               None
                Usage Type               Data
              wMaxPacketSize     0x0040  1x 64 bytes
              bInterval               0
            Endpoint Descriptor:
              bLength                 7
              bDescriptorType         5
              bEndpointAddress     0x85  EP 5 IN
              bmAttributes            2
                Transfer Type            Bulk
                Synch Type               None
                Usage Type               Data
              wMaxPacketSize     0x0040  1x 64 bytes
              bInterval               0
            Endpoint Descriptor:
              bLength                 7
              bDescriptorType         5
              bEndpointAddress     0x05  EP 5 OUT
              bmAttributes            2
                Transfer Type            Bulk
                Synch Type               None
                Usage Type               Data
              wMaxPacketSize     0x0040  1x 64 bytes
              bInterval               0
      Device Status:     0x0000
        (Bus Powered)
      
      From: Tony Murray <murraytony@gmail.com>
      Cc: Kevin Lloyd <klloyd@sierrawireless.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      
      
      f8834f1f
    • K
      USB Serial: Sierra: Device addition & version rev · 73b2c205
      Kevin Lloyd 提交于
      This patch adds devices to the sierra driver and rev's the driver version.
      Signed-off-by: NKevin Lloyd <klloyd@sierrawireless.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      73b2c205
  7. 14 8月, 2008 4 次提交
  8. 23 7月, 2008 2 次提交
  9. 25 4月, 2008 8 次提交
  10. 25 3月, 2008 2 次提交
  11. 22 2月, 2008 1 次提交
  12. 02 2月, 2008 5 次提交
  13. 23 12月, 2007 1 次提交
  14. 18 12月, 2007 1 次提交
  15. 29 11月, 2007 1 次提交
  16. 26 10月, 2007 1 次提交
  17. 19 10月, 2007 1 次提交
    • J
      Add missing newlines to some uses of dev_<level> messages · 898eb71c
      Joe Perches 提交于
      Found these while looking at printk uses.
      
      Add missing newlines to dev_<level> uses
      Add missing KERN_<level> prefixes to multiline dev_<level>s
      Fixed a wierd->weird spelling typo
      Added a newline to a printk
      Signed-off-by: NJoe Perches <joe@perches.com>
      Cc: "Luck, Tony" <tony.luck@intel.com>
      Cc: Jens Axboe <jens.axboe@oracle.com>
      Cc: Mark M. Hoffman <mhoffman@lightlink.com>
      Cc: Roland Dreier <rolandd@cisco.com>
      Cc: Tilman Schmidt <tilman@imap.cc>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Jeff Garzik <jeff@garzik.org>
      Cc: Stephen Hemminger <shemminger@linux-foundation.org>
      Cc: Greg KH <greg@kroah.com>
      Cc: Jeremy Fitzhardinge <jeremy@goop.org>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Alessandro Zummo <a.zummo@towertech.it>
      Cc: David Brownell <david-b@pacbell.net>
      Cc: James Smart <James.Smart@Emulex.Com>
      Cc: Andrew Vasquez <andrew.vasquez@qlogic.com>
      Cc: "Antonino A. Daplas" <adaplas@pol.net>
      Cc: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
      Cc: Russell King <rmk@arm.linux.org.uk>
      Cc: Jaroslav Kysela <perex@suse.cz>
      Cc: Takashi Iwai <tiwai@suse.de>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      898eb71c
  18. 31 7月, 2007 1 次提交