usb: dwc3: debug: decode uFrame from event too
XferNotReady and XferInProgress give us the uFrame number we're currently in. Printing that out on tracepoints may help us find bugs in transfer scheduling. Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
This commit is contained in:
parent
42626919ef
commit
e1d542f712
|
@ -493,14 +493,18 @@ dwc3_ep_event_string(char *str, const struct dwc3_event_depevt *event,
|
||||||
case DWC3_DEPEVT_XFERINPROGRESS:
|
case DWC3_DEPEVT_XFERINPROGRESS:
|
||||||
len = strlen(str);
|
len = strlen(str);
|
||||||
|
|
||||||
sprintf(str + len, "Transfer In Progress (%c%c%c)",
|
sprintf(str + len, "Transfer In Progress [%d] (%c%c%c)",
|
||||||
|
event->parameters,
|
||||||
status & DEPEVT_STATUS_SHORT ? 'S' : 's',
|
status & DEPEVT_STATUS_SHORT ? 'S' : 's',
|
||||||
status & DEPEVT_STATUS_IOC ? 'I' : 'i',
|
status & DEPEVT_STATUS_IOC ? 'I' : 'i',
|
||||||
status & DEPEVT_STATUS_LST ? 'M' : 'm');
|
status & DEPEVT_STATUS_LST ? 'M' : 'm');
|
||||||
break;
|
break;
|
||||||
case DWC3_DEPEVT_XFERNOTREADY:
|
case DWC3_DEPEVT_XFERNOTREADY:
|
||||||
strcat(str, "Transfer Not Ready");
|
len = strlen(str);
|
||||||
strcat(str, status & DEPEVT_STATUS_TRANSFER_ACTIVE ?
|
|
||||||
|
sprintf(str + len, "Transfer Not Ready [%d]%s",
|
||||||
|
event->parameters,
|
||||||
|
status & DEPEVT_STATUS_TRANSFER_ACTIVE ?
|
||||||
" (Active)" : " (Not Active)");
|
" (Active)" : " (Not Active)");
|
||||||
|
|
||||||
/* Control Endpoints */
|
/* Control Endpoints */
|
||||||
|
|
Loading…
Reference in New Issue