xHCI: set cycle state when allocate rings
authorAndiry Xu <andiry.xu@amd.com>
Mon, 5 Mar 2012 09:49:36 +0000 (17:49 +0800)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Tue, 13 Mar 2012 16:30:15 +0000 (09:30 -0700)
commit186a7ef13a8fa3bc7cca1ccd33bd469b931e46de
tree9416923f77f39ae4dd9f7af9a17335d106965e92
parent70d43601773b9f270b62867a51495846d746b5d4
xHCI: set cycle state when allocate rings

In the past all the rings were allocated with cycle state equal to 1.
Now the driver may expand an existing ring, and the new segments shall be
allocated with the same cycle state as the old one.

This affects ring allocation and cached ring re-initialization.

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