17 Feb, 2010

3 commits

  • This patch adds support for Dell Computer Corp. Wireless 5720 VZW Mobile
    Broadband (EVDO Rev-A) Minicard GPS Port. I stole the name from lsusb,
    but my card does not have a GPS on it (at least not that I can make
    function). I'm sure the patch is whitespace damaged but the one line
    addition should be fairly straightforward nonetheless.

    Tested-by: Rick Farina
    Signed-off-by: Rick Farina
    Signed-off-by: Greg Kroah-Hartman

    Richard Farina
     
  • - add FTDI device IDs for several ELV devices and NXTCam of Lego Mindstorms NXT
    - add hopefully helpful new_id comment
    - remove less helpful "Due to many user requests for multiple ELV devices we enable
    them by default." comment (we simply add _all_ known devices - an
    enduser shouldn't have to fiddle with obscure module parameters...).
    - add myself to DRIVER_AUTHOR

    The missing NXTCam ID has been found at
    http://www.unixboard.de/vb3/showthread.php?t=44155
    , ELV devices taken from ELV Windows .inf file.

    Signed-off-by: Andreas Mohr
    Signed-off-by: Greg Kroah-Hartman

    Andreas Mohr
     
  • added new device pid (PAPOUCH_AD4USB_PID) to ftdi_sio.h and ftdi_sio.c

    AD4USB measuring converter is a 4-input A/D converter which enables the
    user to measure to four current inputs ranging from 0(4) to 20 mA or
    voltage between 0 and 10 V. The measured values are then transferred to
    a superior system in digital form. The AD4USB communicates via USB.
    Powered is also via USB. datasheet in english is here:
    http://www.papouch.com/shop/scripts/pdf/ad4usb_en.pdf

    Signed-off-by: Radek Liboska

    Radek Liboska
     

21 Jan, 2010

2 commits

  • Fix a regression introduced by commit
    715b1dc01fe44537e8fce9566e4bb48d6821d84b ("USB: usb_debug,
    usb_generic_serial: implement multi urb write").

    URB transfer buffer was never freed when using multi-urb writes.
    Currently the only driver enabling multi-urb writes is usb_debug.

    Signed-off-by: Johan Hovold
    Cc: Greg KH
    Acked-by: Jason Wessel
    Cc: stable
    Signed-off-by: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    Johan Hovold
     
  • This patch fix a possible race bug in drivers/usb/serial/generic with
    the new kfifo API.

    Please apply it to the 2.6.33-rc* tree.

    Signed-off-by: Stefani Seibold
    Signed-off-by: Greg Kroah-Hartman

    Stefani Seibold
     

24 Dec, 2009

5 commits

  • I made this patch for usbserial driver to add the support for EVDO modem
    Haier CE100. The bugs report for this is here:
    https://bugs.launchpad.net/ubuntu/+source/linux/+bug/490068

    This patch based on these post:
    http://blankblondtank.wordpress.com/2009/09/04/mengoptimalkan-koneksi-modem-haier-ce-100-cdma-di-linux/
    http://tantos.web.id/blogs/how-to-internet-connection-using-cdma-evdo-modem-and-karmic-koala-ubuntu-9-10

    I hope this patch can help other that have the Haier C100 modem, mostly in my country, Indonesia.

    Signed-off-by: Donny Kurnia
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Donny Kurnia
     
  • This is a (almost) sort-only patch to sort FTDI device
    product ID definitions in new ftdi_sio_ids.h header.

    Advantage is that new device ID submissions will now have a specific (sorted)
    position - less future merge conflicts.

    Compile-tested, based on _current_ mainline git.
    Minor checkpatch.pl warnings were eliminated whereever it made sense,
    very minor text changes.

    Signed-off-by: Andreas Mohr
    Signed-off-by: Greg Kroah-Hartman

    Andreas Mohr
     
  • This is a strictly move-only patch to relocate all FTDI device
    product ID definitions to their own ftdi_sio_ids.h header
    (following the usual *_ids.h kernel tree convention, too),
    thus correcting the slightly too messy appearance
    (crucial driver defines were stuck somewhere in the decaying middle swamp
    of the huge existing header).

    Compile-tested, based on latest mainline git.

    Signed-off-by: Andreas Mohr
    Signed-off-by: Greg Kroah-Hartman

    Andreas Mohr
     
  • Signed-off-by: Blaise Gassend
    Signed-off-by: Greg Kroah-Hartman

    Blaise Gassend
     
  • The USB serial code was a new user of the kfifo API, and it was missed
    when porting things to the new kfifo API.

    Please make the write_fifo in place. Here is my patch to fix the
    regression and full ported version.

    Signed-off-by: Stefani Seibold
    Reported-and-tested-by: Rafael J. Wysocki
    Cc: Greg KH
    Cc: Andrew Morton
    Cc: Alan Stern
    Signed-off-by: Linus Torvalds

    Stefani Seibold
     

23 Dec, 2009

4 commits

  • rename kfifo_put... into kfifo_in... to prevent miss use of old non in
    kernel-tree drivers

    ditto for kfifo_get... -> kfifo_out...

    Improve the prototypes of kfifo_in and kfifo_out to make the kerneldoc
    annotations more readable.

    Add mini "howto porting to the new API" in kfifo.h

    Signed-off-by: Stefani Seibold
    Acked-by: Greg Kroah-Hartman
    Acked-by: Mauro Carvalho Chehab
    Acked-by: Andi Kleen
    Acked-by: Arnd Bergmann
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Stefani Seibold
     
  • change name of __kfifo_* functions to kfifo_*, because the prefix __kfifo
    should be reserved for internal functions only.

    Signed-off-by: Stefani Seibold
    Acked-by: Greg Kroah-Hartman
    Acked-by: Mauro Carvalho Chehab
    Acked-by: Andi Kleen
    Acked-by: Arnd Bergmann
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Stefani Seibold
     
  • Move the pointer to the spinlock out of struct kfifo. Most users in
    tree do not actually use a spinlock, so the few exceptions now have to
    call kfifo_{get,put}_locked, which takes an extra argument to a
    spinlock.

    Signed-off-by: Stefani Seibold
    Acked-by: Greg Kroah-Hartman
    Acked-by: Mauro Carvalho Chehab
    Acked-by: Andi Kleen
    Acked-by: Arnd Bergmann
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Stefani Seibold
     
  • This is a new generic kernel FIFO implementation.

    The current kernel fifo API is not very widely used, because it has to
    many constrains. Only 17 files in the current 2.6.31-rc5 used it.
    FIFO's are like list's a very basic thing and a kfifo API which handles
    the most use case would save a lot of development time and memory
    resources.

    I think this are the reasons why kfifo is not in use:

    - The API is to simple, important functions are missing
    - A fifo can be only allocated dynamically
    - There is a requirement of a spinlock whether you need it or not
    - There is no support for data records inside a fifo

    So I decided to extend the kfifo in a more generic way without blowing up
    the API to much. The new API has the following benefits:

    - Generic usage: For kernel internal use and/or device driver.
    - Provide an API for the most use case.
    - Slim API: The whole API provides 25 functions.
    - Linux style habit.
    - DECLARE_KFIFO, DEFINE_KFIFO and INIT_KFIFO Macros
    - Direct copy_to_user from the fifo and copy_from_user into the fifo.
    - The kfifo itself is an in place member of the using data structure, this save an
    indirection access and does not waste the kernel allocator.
    - Lockless access: if only one reader and one writer is active on the fifo,
    which is the common use case, no additional locking is necessary.
    - Remove spinlock - give the user the freedom of choice what kind of locking to use if
    one is required.
    - Ability to handle records. Three type of records are supported:
    - Variable length records between 0-255 bytes, with a record size
    field of 1 bytes.
    - Variable length records between 0-65535 bytes, with a record size
    field of 2 bytes.
    - Fixed size records, which no record size field.
    - Preserve memory resource.
    - Performance!
    - Easy to use!

    This patch:

    Since most users want to have the kfifo as part of another object,
    reorganize the code to allow including struct kfifo in another data
    structure. This requires changing the kfifo_alloc and kfifo_init
    prototypes so that we pass an existing kfifo pointer into them. This
    patch changes the implementation and all existing users.

    [akpm@linux-foundation.org: fix warning]
    Signed-off-by: Stefani Seibold
    Acked-by: Greg Kroah-Hartman
    Acked-by: Mauro Carvalho Chehab
    Acked-by: Andi Kleen
    Acked-by: Arnd Bergmann
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Stefani Seibold
     

12 Dec, 2009

18 commits


01 Dec, 2009

2 commits

  • This patch adds the vendor and device id for the Mobilcom Debitel UMTS surf
    stick (a.k.a. 4G Systems XSStick W14, MobiData MBD-200HU, ...).

    To see these ids, you need to switch the stick to modem operation first
    with the help of usb_modeswitch. This makes it switch from 1c9e:f000 to
    1c9e:9603 and thus be recognized by the option driver.

    Signed-off-by: Gernot Hillier
    Signed-off-by: Greg Kroah-Hartman

    Gernot Hillier
     
  • The use of urb->actual_length to update tx_outstanding_bytes
    implicitly assumes that the number of bytes actually written is the
    same as the number of bytes we tried to write. On error that
    assumption is violated so just use transfer_buffer_length the number
    of bytes we intended to write to the device.

    If an error occurs we need to fall through and call
    usb_serial_port_softint to wake up processes waiting in
    tty_wait_until_sent.

    Signed-off-by: Eric W. Biederman
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Eric W. Biederman
     

18 Nov, 2009

3 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6:
    USB: option.c: add support for D-Link DWM-162-U5
    USB: usbmon: fix bug in mon_buff_area_shrink
    USB: xhci: Fix scratchpad deallocation.
    USB: xhci: Fix TRB physical to virtual address translation.
    USB: xhci: Fix bug memory free after failed initialization.
    USB: cdc_acm: Fix memory leak after hangup
    USB: cdc_acm: Fix race condition when opening tty
    USB: ohci: quirk AMD prefetch for USB 1.1 ISO transfer

    Linus Torvalds
     
  • Add D-Link DWM-162-U5 device id 1e0e:ce16 into option driver. The device
    has 4 interfaces, of which 1 is handled by storage and the other 3 by
    option driver.

    The device appears first as CD-only 05c6:2100 device and must be
    switched to 1e0e:ce16 mode either by using "eject CD" or usb_modeswitch.

    The MessageContent for usb_modeswitch.conf is:
    "55534243e0c26a85000000000000061b000000020000000000000000000000"

    Signed-off-by: Zhang Le
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Zhang Le
     
  • Original discussion:
    http://thread.gmane.org/gmane.linux.usb.general/23217/focus=23248
    or
    http://marc.info/?l=linux-usb&m=125553790714133&w=2

    9a68e39d4a701fb3be03cae9b462408664ebd205 broke carrier handling so that a
    cp210x setup which needed the carrier lines set up (non CLOCAL) which did
    not make a call which set the termios bits left the lines down even if
    CLOCAL was not asserted.

    Fix this not by reverting but by adding the proper dtr_rts and
    carrier_raised methods. This both sets the modem lines properly and also
    implements the correct blocking semantics for the port as required by
    POSIX.

    Signed-off-by: Alan Cox
    Reported-by: Karl Hiramoto
    Tested-by: Karl Hiramoto
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Alan Cox
     

31 Oct, 2009

3 commits

  • Add ID for Tlaytech TUE800 CDMA modem to the option driver.

    Signed-off-by: Bryan Wu
    Acked-By: Matthias Urlichs
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Bryan Wu
     
  • This patch presents fixes for the autosuspend feature implementation in
    sierra usb serial driver in functions sierra_open(), sierra_close() and
    stop_read_write_urbs().

    The patch "sierra_close() must resume the device before it notifies it
    of a closure" submitted by Oliver Neukum on Wed, October 14 has been
    merged as fix in sierra_close() function.

    The bug fix in sierra_open() function restores the autopm interface
    state on error condition.

    The bug fix in in stop_read_write_urbs() function assures that both
    receive and interrupt urbs are recycled.

    Signed-off-by: Elina Pasheva
    Signed-off-by: Greg Kroah-Hartman

    Elina Pasheva
     
  • This patch presents a fix for the autosuspend feature implementation in
    sierra usb serial driver for function sierra_send_setup(). Because it
    is possible to call sierra_send_setup() before sierra_open() or after
    sierra_close() we added a get/put interface activity to assure that the
    usb control can happen even when the device is autosuspended.

    Signed-off-by: Elina Pasheva
    Tested-by: Matthew Safar
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Elina Pasheva