]> git.hungrycats.org Git - linux/commit
[PATCH] USB: usb gadgetfs updates
authorDavid Brownell <david-b@pacbell.net>
Tue, 23 Sep 2003 10:18:18 +0000 (03:18 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Tue, 23 Sep 2003 10:18:18 +0000 (03:18 -0700)
commit14fff3d3ac3f9de9b8a74c7a4dd7a31e7af6371f
tree1c68d48d91a43294ab92c10b536075f196677312
parentb680dcc3a557af3f394faf810b48c625f85a6a96
[PATCH] USB: usb gadgetfs updates

Some small updates:

  - Sometimes read requests can be satisfied directly from
    the OUT fifo.  This fixes a bug where the return code
    from usb_ep_queue() overwrite the transfer status, which
    in that case was set _before_ that call returned.
    (Synchronous behavior; not the usual async completion.)

  - In the same vein,  usb_ep_dequeue() doesn't need to be
    synchronous -- though so far most controller drivers
    have implemented it that way.  So drop the spinlock
    before the wait_event() sleep.

  - Some debug messages are more useful AFTER the event
    than before.

  - The only descriptor fetches user mode drivers will
    need to handle are for string descriptors.  Stall all
    other requests, like ones for other-speed configs
    on single-speed devices.
drivers/usb/gadget/inode.c