]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
usb: dwc3: debug: Print GET_STATUS(device) tracepoint
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Thu, 25 Apr 2019 21:06:10 +0000 (14:06 -0700)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 3 May 2019 06:13:49 +0000 (09:13 +0300)
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>
drivers/usb/dwc3/debug.h

index 6759a7efd8d508b004e123e412eebbac154b9384..068259fdfb0cd9bbb2d85ad939a42d575222ea5b 100644 (file)
@@ -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);