diff mbox series

usb: dwc3: debug: Print GET_STATUS(device) tracepoint

Message ID 0576542b255f26d2c89f358a1eacd66c4c3dce8b.1556226012.git.thinhn@synopsys.com (mailing list archive)
State Mainlined
Commit dd24f9b604d3bf04c23544695e1cdbdc84e0c7de
Headers show
Series usb: dwc3: debug: Print GET_STATUS(device) tracepoint | expand

Commit Message

Thinh Nguyen April 25, 2019, 9:06 p.m. UTC
DWC3 is missing the printing of control request GET_STATUS(device)
tracepoint. This patch prints that.

Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
---
 drivers/usb/dwc3/debug.h | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

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);