]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: xhci-dbg: Display endpoint number and direction in context dump
authorJulius Werner <jwerner@chromium.org>
Mon, 15 Apr 2013 22:55:04 +0000 (15:55 -0700)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Wed, 5 Jun 2013 23:41:47 +0000 (16:41 -0700)
commit01c5f4477d527732ecaf92d9b3d2201c8030000b
tree408de03b6f45f1127290b49bb416bbb2dc35b5e7
parent0c967e7ecdc2cf42853b4c76f0b2e94ba53c5b92
usb: xhci-dbg: Display endpoint number and direction in context dump

When CONFIG_XHCI_HCD_DEBUGGING is activated, the XHCI driver can dump
device and input contexts to the console. The endpoint contexts in that
dump are labeled "Endpoint N Context", where N is the XHCI endpoint
index (DCI - 1). This can be very confusing, especially for people who
are not that familiar with the XHCI specification. This patch introduces
an xhci_get_endpoint_address function (as a counterpart to the reverse
xhci_get_endpoint_index), and uses it to additionally display the
endpoint number and direction when dumping contexts, which are much more
commonly used concepts in USB.

Signed-off-by: Julius Werner <jwerner@chromium.org>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
drivers/usb/host/xhci-dbg.c
drivers/usb/host/xhci.c
drivers/usb/host/xhci.h