]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xHCI: add cmd_ring_state
authorElric Fu <elricfu1@gmail.com>
Wed, 27 Jun 2012 08:30:57 +0000 (16:30 +0800)
committerGuangyu Sun <guangyu.sun@oracle.com>
Tue, 6 Nov 2012 00:28:34 +0000 (16:28 -0800)
commit6ad6ee2a816c5684cfc67e881c2e9503fe281c9e
tree1aa1444434961e6786a361c7bd8866dd9d5527d4
parentf2d02eed32fc9263c67fe78576c1dce43455db32
xHCI: add cmd_ring_state

commit c181bc5b5d5c79b71203cd10cef97f802fb6f9c1 upstream.

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
7ed603ecf8b68ab81f4c83097d3063d43ec73bb8 "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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Guangyu Sun <guangyu.sun@oracle.com>
drivers/usb/host/xhci-ring.c
drivers/usb/host/xhci.c
drivers/usb/host/xhci.h