From: Julius Werner Date: Mon, 15 Apr 2013 22:55:04 +0000 (-0700) Subject: usb: xhci-dbg: Display endpoint number and direction in context dump X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~78^2~63^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01c5f4477d527732ecaf92d9b3d2201c8030000b;p=pandora-kernel.git 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 Signed-off-by: Sarah Sharp --- Reading git-diff-tree failed