]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit79a8699f51014f1e43a6581fa8ee1ddb7b724777
tree9416923f77f39ae4dd9f7af9a17335d106965e92
parentbed0ecb735e0c3b8f5e819f97a66e0014f039afd
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