xHCI: store ring's type
authorAndiry Xu <andiry.xu@amd.com>
Mon, 5 Mar 2012 09:49:32 +0000 (17:49 +0800)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Mon, 12 Mar 2012 23:50:24 +0000 (16:50 -0700)
commit3b72fca09d7aed0c1a390370eb3f3f4f0480702a
tree3e1de71e220ed585fd85b1b2002652c96c760b04
parent8d3709f3dd41769338cc383bec23673fd1ce34e7
xHCI: store ring's type

When allocate a ring, store its type - four transfer types for endpoint,
TYPE_STREAM for stream transfer, and TYPE_COMMAND/TYPE_EVENT for xHCI host.

This helps to get rid of three bool function parameters: link_trbs, isoc
and consumer.

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
drivers/usb/host/xhci-ring.c
drivers/usb/host/xhci.h