summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>2019-04-25 14:06:10 -0700
committerFelipe Balbi <felipe.balbi@linux.intel.com>2019-05-03 09:13:49 +0300
commitdd24f9b604d3bf04c23544695e1cdbdc84e0c7de (patch)
tree067d6c1884853484f24e4e531df44884abbe3bae
parentb873e2d0ea1efc91fb603b727733525f07419f2b (diff)
downloadlinux-stable-dd24f9b604d3bf04c23544695e1cdbdc84e0c7de.tar.gz
linux-stable-dd24f9b604d3bf04c23544695e1cdbdc84e0c7de.tar.bz2
linux-stable-dd24f9b604d3bf04c23544695e1cdbdc84e0c7de.zip
usb: dwc3: debug: Print GET_STATUS(device) tracepoint
DWC3 is missing the printing of control request GET_STATUS(device) tracepoint. This patch prints that. Signed-off-by: Thinh Nguyen <thinhn@synopsys.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
-rw-r--r--drivers/usb/dwc3/debug.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/debug.h b/drivers/usb/dwc3/debug.h
index 6759a7efd8d5..068259fdfb0c 100644
--- a/drivers/usb/dwc3/debug.h
+++ b/drivers/usb/dwc3/debug.h
@@ -250,6 +250,9 @@ static inline void dwc3_decode_get_status(__u8 t, __u16 i, __u16 l, char *str,
size_t size)
{
switch (t & USB_RECIP_MASK) {
+ case USB_RECIP_DEVICE:
+ snprintf(str, size, "Get Device Status(Length = %d)", l);
+ break;
case USB_RECIP_INTERFACE:
snprintf(str, size, "Get Interface Status(Intf = %d, Length = %d)",
i, l);