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)
commit9a9bf406df3ce238089d14f4cb41157ca56d8ad3
treebc4aff46d139d6f0f8cc852744fe2fe991ea53c8
parent9439eb94b5c374d5b02699f8897fc43aa3603701
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