]> git.baikalelectronics.ru Git - kernel.git/commit
USB: separate out endpoint queue management and DMA mapping routines
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 2 Aug 2007 19:06:54 +0000 (15:06 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 12 Oct 2007 21:55:02 +0000 (14:55 -0700)
commit23bb7d1d73cf9a628f8cb8416c93fd2410487456
treebc4aff46d139d6f0f8cc852744fe2fe991ea53c8
parent2eecc842c1e9535ae2e15fde18cd02de04b4ee1e
USB: separate out endpoint queue management and DMA mapping routines

This patch (as953) separates out three key portions from
usb_hcd_submit_urb(), usb_hcd_unlink_urb(), and usb_hcd_giveback_urb()
and puts them in separate functions of their own.  In the next patch,
these functions will be called directly by host controller drivers
while holding their private spinlocks, which will remove the
possibility of some unpleasant races.

The code responsible for mapping and unmapping DMA buffers is also
placed into a couple of separate subroutines, for the sake of
cleanliness and consistency.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/hcd.c