xHCI: Allocate 2 segments for transfer ring
authorAndiry Xu <andiry.xu@amd.com>
Mon, 5 Mar 2012 09:49:39 +0000 (17:49 +0800)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Tue, 13 Mar 2012 16:30:34 +0000 (09:30 -0700)
commit2fdcd47b6980f4e26a97811a17f5be7cb919ef90
tree24badc008b12560a7a1943d6c825e298dd6f8d0a
parent8dfec6140fc617b932cf9a09ba46d0ee3f3a7d87
xHCI: Allocate 2 segments for transfer ring

Allocate 2 segments for transfer ring by default, so we can expand the ring
when the enqueue pointer and dequeue pointer are in different segments.

Signed-off-by: Andiry Xu <andiry.xu@amd.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Tested-by: Paul Zimmerman <Paul.Zimmerman@synopsys.com>
drivers/usb/host/xhci-mem.c