29 Sep, 2006

26 commits


28 Sep, 2006

14 commits

  • This is more preparation for adding support for the new Atmel AT91SAM9
    processors.

    Changes include:
    - Replace AT91_BASE_* with AT91RM9200_BASE_*
    - Replace AT91_ID_* with AT91RM9200_ID_*
    - ROM, SRAM and UHP address definitions moved to at91rm9200.h.
    - The raw AT91_P[ABCD]_* definitions are now depreciated in favour of
    the GPIO API.

    Signed-off-by: Andrew Victor
    Signed-off-by: Russell King

    Andrew Victor
     
  • In file included from drivers/usb/storage/usb.c:180:
    drivers/usb/storage/unusual_devs.h:221: error: 'US_PR_KARMA' undeclared here (not in a function)
    drivers/usb/storage/unusual_devs.h:221: error: 'rio_karma_init' undeclared here (not in a function)

    Cc: Keith Bennett
    Acked-by: Bob Copeland
    Cc: Matthew Dharm
    Signed-off-by: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    Andrew Morton
     
  • Adapted from an earlier patch by Greg KH .
    That patch added multiple read urbs and larger transfer buffers to allow
    data transfers at full EvDO speed.

    This version includes additional device IDs and fixes a memory leak in
    the transfer buffer allocation.

    Some (maybe all?) of the supported devices present multiple bulk endpoints,
    the additional EPs can be used for control and status functions,
    This version allocates 3 EPs by default, that can be changed using
    the 'endpoints' module parameter.

    Tested with Sierra Wireless EM5625 and MC5720 embedded modules.

    Device ID (0x0c88, 0x17da) for the Kyocera Wireless KPC650/Passport
    was added but is not yet tested.

    From: Andy Gay
    Cc: Kevin Lloyd
    Signed-off-by: Greg Kroah-Hartman

    Andy Gay
     
  • Somewhere along the line, a variable in a USB-OTG codepath
    stopped being used; this removes the relevant compiler warning.

    Signed-off-by: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    David Brownell
     
  • This revamps handling of the hardware "async advance" IRQ, and its watchdog
    timer. Basically it dis-entangles that important timeout from the others,
    simplifying the associated state and code to make it more robust.

    This reportedly improves behavior of EHCI on some systems with VIA chips,
    and AFAIK won't affect non-VIA hardware. VIA systems need this code to
    recover from silcon bugs whereby the "async advance" IRQ isn't issued.

    Signed-off-by: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    David Brownell
     
  • This patch(as785) forces the PM core to resume a root hub after a
    power loss during system sleep. If the root hub had been suspended
    before the system sleep then normally the PM core would not resume it
    afterward. Without this resume, various sorts of wakeup events (like
    port change events) can get lost.

    Signed-off-by: Alan Stern
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • When ohci-hcd is shutting down (for rmmod or PC-card removal), there is
    a window when the device is shut down, HC communication area (->hcca)
    is freed, but the core has not called "free_irq" yet. If another device
    triggers a shared interrupt in this window, we oops when trying to
    access the freed ->hcca.

    This patch removes the window by calling free_irq before ->hcca is freed.

    The patch is tested at the PC hotplug test rig at Stratus, and with
    rmmod by Rafael Wysocki.

    Signed-off-by: Pete Zaitcev
    Signed-off-by: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    Pete Zaitcev
     
  • The purpose of this patch is to split off the case when a device does
    not reply on the lower level (which is reported by HC hardware), and
    a case when the device accepted the request, but does not reply at
    upper level. This redefinition allows to diagnose issues easier,
    without asking the user if the -110 happened "immediately".

    The usbmon splits such cases already thanks to its timestamp, but
    it's not always available.

    I adjusted all drivers which I found affected (by searching for "urb").
    Out of tree drivers may suffer a little bit, but I do not expect much
    breakage. At worst they may print a few messages.

    Signed-off-by: Pete Zaitcev
    Signed-off-by: Greg Kroah-Hartman

    Pete Zaitcev
     
  • The patch removes unneeded casts for the following (void *) pointers:
    - struct file: private
    - struct urb: context
    - struct usb_bus: hcpriv
    - return value of kmalloc()

    The patch also contains some whitespace cleanup in the relevant areas.

    Signed-off-by: Tobias Klauser
    Signed-off-by: Greg Kroah-Hartman

    Tobias Klauser
     
  • This "u132-hcd" module is one half of the "driver" for
    ELAN's U132 which is a USB to CardBus OHCI controller
    adapter. This module needs the "ftdi-elan" module in
    order to communicate to CardBus OHCI controller inserted
    into the U132 adapter.

    When the "ftdi-elan" module detects a supported CardBus
    OHCI controller in the U132 adapter it loads this "u132-hcd"
    module.

    Upon a successful device probe() the single workqueue
    is started up which does all the processing of commands
    from the USB core that implement the host controller.

    The workqueue maintains the urb queues and issues commands
    via the functions exported by the "ftdi-elan" module. Each
    such command will result in a callback.

    Note that the "ftdi-elan" module is a USB client driver.

    Note that this "u132-hcd" module is a (cut-down OHCI)
    host controller.

    Thus we have a topology with the parent of a host controller
    being a USB client! This really stresses the USB subsystem
    semaphore/mutex handling in the module removal.

    Signed-off-by: Tony Olech
    Signed-off-by: Greg Kroah-Hartman

    Tony Olech
     
  • This "ftdi-elan" module is one half of the "driver" for
    ELAN's Uxxx series adapters which are USB to PCMCIA CardBus
    adapters. Currently only the U132 adapter is available and
    it's module is called "u132-hcd".

    When the USB hot plug subsystem detects a Uxxx series adapter
    it should load this module.

    Upon a successful device probe() the jtag device file interface
    is created and the status workqueue started up.

    The jtag device file interface exists for the purpose of
    updating the firmware in the Uxxx series adapter, but as
    yet it had never been used.

    The status workqueue initializes the Uxxx and then sits there
    polling the Uxxx until a supported PCMCIA CardBus device is
    detected it will start the command and respond workqueues
    and then load the module that handles the device. This will
    initially be only the u132-hcd module. The status workqueue
    then just polls the Uxxx looking for card ejects.

    The command and respond workqueues implement a command
    sequencer for communicating with the firmware on the other
    side of the FTDI chip in the Uxxx. This "ftdi-elan" module
    exports some functions to interface with the sequencer.

    Note that this module is a USB client driver.

    Note that the "u132-hcd" module is a (cut-down OHCI)
    host controller.

    Thus we have a topology with the parent of a host controller
    being a USB client! This really stresses the USB subsystem
    semaphore/mutex handling in the module removal.

    Signed-off-by: Tony Olech
    Signed-off-by: Greg Kroah-Hartman

    Tony Olech
     
  • Patch to add support for Alcor Micro Corp. USB 2.0 TO RS-232 converter.
    This patch adds VID and PID to pl2303.[ch], adds it to the "HORRIBLE
    HACK FOR PL2303" in usb-serial.c and also prevents cdc-acm to claim
    driving this device by blacklisting it in hid-core.

    Signed-off-by: Johannes Steingraeber
    Signed-off-by: Greg Kroah-Hartman

    Johannes Steingraeber
     
  • Signed-off-by: Paul B Schroeder
    Signed-off-by: Greg Kroah-Hartman

    Paul B Schroeder
     
  • This patch is a driver for the PlayStation 2 specific Trance Vibrator
    device. The only thing that device can do is vibrate at various speeds.

    Signed-off-by: Sam Hocevar
    Cc: Pete Zaitcev
    Cc: Luiz Fernando N. Capitulino"
    Signed-off-by: Greg Kroah-Hartman

    Sam Hocevar