16 Oct, 2007

1 commit

  • Fix USB docbook warnings.

    Warning(linux-2.6.23-git8//include/linux/usb/gadget.h:487): No description found for parameter 'g'
    Warning(linux-2.6.23-git8//include/linux/usb/gadget.h:506): No description found for parameter 'g'

    Warning(linux-2.6.23-git8//drivers/usb/core/hub.c:1416): No description found for parameter 'usb_dev'

    Signed-off-by: Randy Dunlap
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     

13 Oct, 2007

3 commits

  • This patch (as997) fixes a bug in the USB serial core. The core needs
    to pay attention to drivers' requirements regarding the number and
    type of endpoints a device has.

    At the same time, the patch changes the NUM_DONT_CARE constant (which
    is stored in a single-byte field) from -1 to a safer, unsigned value.
    It also improves the kerneldoc for several fields in the
    usb_serial_driver structure.

    Finally, the patch replaces a list_for_each() with list_for_each_entry().

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

    Alan Stern
     
  • Move to , reducing
    some of the clutter in the main include directory.

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

    David Brownell
     
  • This patch (as995) cleans up the remains of the former NO_AUTOSUSPEND
    quirk. Since autosuspend is disabled by default, we will let
    userspace worry about which devices can safely be suspended. Thus the
    lengthy series of quirk entries is no longer needed, and neither is
    the quirk ID. I suppose someone might eventually run across a hub
    that can't be suspended; let's ignore the possibility for now.

    The patch also cleans up the hasty way in which autosuspend gets
    disabled. Setting udev->autosuspend_delay to -1 wasn't quite right,
    because the value is always supposed to be a multiple of HZ. It's
    better to leave the delay value alone and set autosuspend_disabled,
    which is what the quirk routine used to do.

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

    Alan Stern
     

13 Jul, 2007

3 commits

  • Make sure gadgetfs userspace interface is properly exported:

    - Move to ;
    - Export it using Kbuild;
    - Add an #include guard;
    - Correct some internal documentation;
    - Update struct layout so it's the same on 32/64 bit kernels.

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

    David Brownell
     
  • This patch (as888) adds a new USB device quirk for devices which are
    unable to resume correctly. By using the new code added for the
    USB-persist facility, it is a simple matter to reset these devices
    instead of resuming them. To get things kicked off, a quirk entry is
    added for the Philips PSC805.

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

    Alan Stern
     
  • this implements generic support for suspend/resume for usb serial.

    Signed-off-by: Oliver Neukum
    Signed-off-by: Greg Kroah-Hartman

    Oliver Neukum
     

28 Apr, 2007

2 commits


24 Feb, 2007

3 commits


17 Feb, 2007

3 commits

  • this is Joris' fixes reshuffelled and features renamed as David requested.

    - acm_set_control is not mandatory, honour that
    - throtteling is reset upon open
    - throtteling is read consistently when processing input data

    Signed-off-by: Joris van Rantwijk
    Signed-off-by: Oliver Neukum
    Signed-off-by: Greg Kroah-Hartman

    Oliver Neukum
     
  • usb: descriptor structures have to be packed

    Many of the Wireless USB decriptors added to usb_ch9.h don't have the
    __attribute__((packed)) tag, and thus, they don't reflect the wire
    size. This patch fixes that.

    Signed-off-by: Inaky Perez-Gonzalez
    Signed-off-by: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    Inaky Perez-Gonzalez
     
  • I added two fields to struct usb_serial_port to keep track of the
    throttle state. Other usb-serial drivers typically use private data for
    such things, but the generic driver can not really do that because some
    of its code is also used by other drivers (which may have their own
    private data needs).

    As it is, I am not sure that this patch is useful in all scenarios.
    It is certainly helpful for low-bandwidth devices that can hold their
    data in response to throttling. But for devices that pump data in
    real-time as fast as possible (webcam, A/D converter, etc), throttling
    may actually cause more data loss.

    From: Joris van Rantwijk
    Signed-off-by: Greg Kroah-Hartman

    Joris van Rantwijk
     

08 Feb, 2007

3 commits


09 Dec, 2006

1 commit

  • This is the grungy swap all the occurrences in the right places patch that
    goes with the updates. At this point we have the same functionality as
    before (except that sgttyb() returns speeds not zero) and are ready to
    begin turning new stuff on providing nobody reports lots of bugs

    If you are a tty driver author converting an out of tree driver the only
    impact should be termios->ktermios name changes for the speed/property
    setting functions from your upper layers.

    If you are implementing your own TCGETS function before then your driver
    was broken already and its about to get a whole lot more painful for you so
    please fix it 8)

    Also fill in c_ispeed/ospeed on init for most devices, although the current
    code will do this for you anyway but I'd like eventually to lose that extra
    paranoia

    [akpm@osdl.org: bluetooth fix]
    [mp3@de.ibm.com: sclp fix]
    [mp3@de.ibm.com: warning fix for tty3270]
    [hugh@veritas.com: fix tty_ioctl powerpc build]
    [jdike@addtoit.com: uml: fix ->set_termios declaration]
    Signed-off-by: Alan Cox
    Signed-off-by: Martin Peschke
    Acked-by: Peter Oberparleiter
    Cc: Cornelia Huck
    Signed-off-by: Hugh Dickins
    Signed-off-by: Jeff Dike
    Cc: Paolo 'Blaisorblade' Giarrusso
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     

05 Oct, 2006

1 commit

  • Maintain a per-CPU global "struct pt_regs *" variable which can be used instead
    of passing regs around manually through all ~1800 interrupt handlers in the
    Linux kernel.

    The regs pointer is used in few places, but it potentially costs both stack
    space and code to pass it around. On the FRV arch, removing the regs parameter
    from all the genirq function results in a 20% speed up of the IRQ exit path
    (ie: from leaving timer_interrupt() to leaving do_IRQ()).

    Where appropriate, an arch may override the generic storage facility and do
    something different with the variable. On FRV, for instance, the address is
    maintained in GR28 at all times inside the kernel as part of general exception
    handling.

    Having looked over the code, it appears that the parameter may be handed down
    through up to twenty or so layers of functions. Consider a USB character
    device attached to a USB hub, attached to a USB controller that posts its
    interrupts through a cascaded auxiliary interrupt controller. A character
    device driver may want to pass regs to the sysrq handler through the input
    layer which adds another few layers of parameter passing.

    I've build this code with allyesconfig for x86_64 and i386. I've runtested the
    main part of the code on FRV and i386, though I can't test most of the drivers.
    I've also done partial conversion for powerpc and MIPS - these at least compile
    with minimal configurations.

    This will affect all archs. Mostly the changes should be relatively easy.
    Take do_IRQ(), store the regs pointer at the beginning, saving the old one:

    struct pt_regs *old_regs = set_irq_regs(regs);

    And put the old one back at the end:

    set_irq_regs(old_regs);

    Don't pass regs through to generic_handle_irq() or __do_IRQ().

    In timer_interrupt(), this sort of change will be necessary:

    - update_process_times(user_mode(regs));
    - profile_tick(CPU_PROFILING, regs);
    + update_process_times(user_mode(get_irq_regs()));
    + profile_tick(CPU_PROFILING);

    I'd like to move update_process_times()'s use of get_irq_regs() into itself,
    except that i386, alone of the archs, uses something other than user_mode().

    Some notes on the interrupt handling in the drivers:

    (*) input_dev() is now gone entirely. The regs pointer is no longer stored in
    the input_dev struct.

    (*) finish_unlinks() in drivers/usb/host/ohci-q.c needs checking. It does
    something different depending on whether it's been supplied with a regs
    pointer or not.

    (*) Various IRQ handler function pointers have been moved to type
    irq_handler_t.

    Signed-Off-By: David Howells
    (cherry picked from 1b16e7ac850969f38b375e511e3fa2f474a33867 commit)

    David Howells
     

28 Sep, 2006

2 commits

  • This driver is glue between the USB gadget interface
    and the ALSA MIDI interface. It allows us to appear
    as a MIDI Streaming device to a host system on the
    other end of a USB cable.

    This includes linux/usb/audio.h and linux/usb/midi.h
    containing definitions from the relevant USB specifications
    for USB audio and USB MIDI devices.

    The following changes have been made since the first RFC
    posting:

    * Bug fixes to endpoint handling.
    * Workaround for USB_REQ_SET_CONFIGURATION handling,
    not understood yet.
    * Added SND and SND_RAWMIDI dependencies in Kconfig.
    * Moved usb_audio.h and usb_midi.h to usb/*.h
    * Added module parameters for ALSA card index and id.
    * Added module parameters for USB descriptor IDs and strings.
    * Removed some unneeded stuff inherited from zero.c, more to go.
    * Provide DECLARE_* macros for the variable-length structs.
    * Use kmalloc instead of usb_ep_alloc_buffer.
    * Limit source to 80 columns.
    * Return actual error code instead of -ENOMEM in a few places.

    Signed-off-by: Ben Williamson
    Cc: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    Ben Williamson
     
  • Move to .

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

    David Brownell
     

13 Jul, 2006

1 commit


22 Jun, 2006

3 commits


15 Apr, 2006

1 commit