]> git.baikalelectronics.ru Git - kernel.git/commit
xHCI: add cmd_ring_state
authorElric Fu <elricfu1@gmail.com>
Wed, 27 Jun 2012 08:30:57 +0000 (16:30 +0800)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Thu, 13 Sep 2012 22:46:41 +0000 (15:46 -0700)
commitc8dc98c1e92200b70ec8b47842f7226f2397d1e6
treef6378b3d7c7cbef225674a56dcb94d0063b6ffd2
parent99bb52bac89d5e8c83ca2be39c543af19543034c
xHCI: add cmd_ring_state

Adding cmd_ring_state for command ring. It helps to verify
the current command ring state for controlling the command
ring operations.

This patch should be backported to kernels as old as 3.0.  The commit
6383e3cc23acb405757fde4c857186191f98fa79 "xhci: Add an assertion to
check for virt_dev=0 bug." papers over the NULL pointer dereference that
I now believe is related to a timed out Set Address command.  This (and
the four patches that follow it) contain the real fix that also allows
VIA USB 3.0 hubs to consistently re-enumerate during the plug/unplug
stress tests.

Signed-off-by: Elric Fu <elricfu1@gmail.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Tested-by: Miroslav Sabljic <miroslav.sabljic@avl.com>
Cc: stable@vger.kernel.org
drivers/usb/host/xhci-ring.c
drivers/usb/host/xhci.c
drivers/usb/host/xhci.h