]> git.neil.brown.name Git - history.git/commit
[PATCH] usbcore doc + minor fixes
authorDavid Brownell <david-b@pacbell.net>
Sun, 13 Oct 2002 08:40:00 +0000 (01:40 -0700)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Sun, 13 Oct 2002 08:40:00 +0000 (01:40 -0700)
commit321d6a826727fac90daa8cf21c4c9d973400750d
tree909b351e3a018316c7fe7e15e020b37b8122e74c
parentc2ece75a4c6c55abfd7cc4238065c6bb8d4c1d30
[PATCH] usbcore doc + minor fixes

Cleaning out my queue of most minor patches:

  - Provides some kerneldoc for 'struct usb_interface' now that
    the API is highlighting it.

  - Fixes usb_set_interface() so it doesn't affect other interfaces.

    This provides the right place for an eventual HCD call to clean
    out now-invalid records of endpoint state, and also gets rid of
    a potential SMP issue where drivers on different interfaces
    calling concurrently could clobber each other.  (Per-interface
    data doesn't need locking except against config changes.)

  - It's OK to pass URB_NO_INTERRUPT hints if you're queueing a
    bunch of interrupt transfers.

The set_interface call should eventually take the interface as a
parameter, it's one of the few left using the "device plus magic
number" identifier.  I have a partial patch for that, but it doesn't
handle the (newish) ALSA usb audio driver or a few other callers.
drivers/usb/core/message.c
drivers/usb/core/urb.c
include/linux/usb.h