• Elric Fu's avatar
    xHCI: add cmd_ring_state · c181bc5b
    Elric Fu authored
    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
    7ed603ec "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: default avatarElric Fu <elricfu1@gmail.com>
    Signed-off-by: default avatarSarah Sharp <sarah.a.sharp@linux.intel.com>
    Tested-by: default avatarMiroslav Sabljic <miroslav.sabljic@avl.com>
    Cc: stable@vger.kernel.org
    c181bc5b
xhci-ring.c 114 KB