USB: xhci: Scratchpad buffer allocation
authorJohn Youn <johnyoun@synopsys.com>
Mon, 27 Jul 2009 19:05:03 +0000 (12:05 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 28 Jul 2009 21:31:13 +0000 (14:31 -0700)
commit254c80a3a0eb811489f7410c3291f01a60e8e42f
tree2556e997876bc3e02f49bad8feb2a269103a5440
parent9f8e443816976edd68f415ea25c0223ea921e88c
USB: xhci: Scratchpad buffer allocation

Allocates and initializes the scratchpad buffer array (XHCI 4.20).  This is an
array of 64-bit DMA addresses to scratch pages that the controller may use
during operation.  The number of pages is specified in the "Max Scratchpad
Buffers" field of HCSPARAMS2.  The DMA address of this array is written into
slot 0 of the DCBAA.

Signed-off-by: John Youn <johnyoun@synopsys.com>
Acked-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/xhci-mem.c
drivers/usb/host/xhci.h