summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/xhci-trace.h
diff options
context:
space:
mode:
authorMathias Nyman <mathias.nyman@linux.intel.com>2017-04-07 17:57:01 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-04-08 12:17:41 +0200
commitd9f11ba9f107aa335091ab8d7ba5eea714e46e8b (patch)
treefdcd52b0fbd2fb43f2b27f210f380211e449b51f /drivers/usb/host/xhci-trace.h
parentfe190ed0d60260e44f48d8b0b04f26a8c8898a02 (diff)
downloadblackbird-obmc-linux-d9f11ba9f107aa335091ab8d7ba5eea714e46e8b.tar.gz
blackbird-obmc-linux-d9f11ba9f107aa335091ab8d7ba5eea714e46e8b.zip
xhci: Rework how we handle unresponsive or hoptlug removed hosts
Introduce a new xhci_hc_died() function that takes care of handling pending commands and URBs if a host controller becomes unresponsive. This addresses issues on hotpluggable xhci controllers that disappear from the bus suddenly, often while the bus (PCI) remove function is still being processed. xhci_hc_died() sets a XHCI_STATUS_DYING flag to prevent new URBs and commands or to be queued. The flag also ensures xhci_hc_died() will give back pending commands and URBs once. Host is considered dead if register read returns 0xffffffff, or host fails to abort the command ring, or fails stopping an endpoint after trying for 5 seconds. Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/xhci-trace.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud