OSDN Git Service

usb: host: xhci: extract xhci_slot_state_string()
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 7 Apr 2017 14:56:56 +0000 (17:56 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Apr 2017 10:17:41 +0000 (12:17 +0200)
commit52407729fbeabb654d38c0c99661a41a481092d1
treecd93814b36953114aee37171fff1b9b4d04374f7
parenteaa9eb71a277149a2241b24f27aa09258745b4dd
usb: host: xhci: extract xhci_slot_state_string()

By extracting and exposing xhci_slot_state_string() in a header file, we
can re-use it to print Slot Context State from our tracepoints, which
can aid in tracking down problems related to command execution.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-dbg.c
drivers/usb/host/xhci.h