diff --git a/arch/arm/src/sama5/sam_ehci.c b/arch/arm/src/sama5/sam_ehci.c index 6165a029d1..280d9b93ae 100644 --- a/arch/arm/src/sama5/sam_ehci.c +++ b/arch/arm/src/sama5/sam_ehci.c @@ -3663,6 +3663,7 @@ static int sam_ep0configure(FAR struct usbhost_driver_s *drvr, usbhost_ep_t ep0, { struct sam_epinfo_s *epinfo = (struct sam_epinfo_s *)ep0; + usbhost_vtrace2(EHCI_VTRACE2_EP0CONFIG, speed, funcaddr); DEBUGASSERT(drvr != NULL && epinfo != NULL && maxpacketsize < 2048); /* We must have exclusive access to the EHCI data structures. */ diff --git a/arch/arm/src/sama5/sam_ohci.c b/arch/arm/src/sama5/sam_ohci.c index 0ba0d23fe7..9743216674 100644 --- a/arch/arm/src/sama5/sam_ohci.c +++ b/arch/arm/src/sama5/sam_ohci.c @@ -2438,6 +2438,7 @@ static int sam_ep0configure(struct usbhost_driver_s *drvr, usbhost_ep_t ep0, struct sam_ed_s *edctrl; uint32_t hwctrl; + usbhost_vtrace2(OHCI_VTRACE2_EP0CONFIG, speed, funcaddr); DEBUGASSERT(rhport && maxpacketsize < 2048); edctrl = ep0list->ed; diff --git a/arch/arm/src/sama5/sam_usbhost.c b/arch/arm/src/sama5/sam_usbhost.c index f1d82445ea..96994d44fb 100644 --- a/arch/arm/src/sama5/sam_usbhost.c +++ b/arch/arm/src/sama5/sam_usbhost.c @@ -165,6 +165,7 @@ static const struct sam_usbhost_trace_s g_trace2[TRACE2_NSTRINGS] = TRENTRY(OHCI_TRACE2_CLASSENUM_FAILED, TR_OHCI, TR_FMT2, "OHCI Hub port %d usbhost_enumerate() failed: %d\n"), #ifdef HAVE_USBHOST_TRACE_VERBOSE + TRENTRY(OHCI_VTRACE2_EP0CONFIG, TR_OHCI, TR_FMT2, "OHCI EP0 configure speed=%d funcaddr=%d\n"), TRENTRY(OHCI_VTRACE2_INTERVAL, TR_OHCI, TR_FMT2, "OHCI interval: %d->%d\n"), TRENTRY(OHCI_VTRACE2_MININTERVAL, TR_OHCI, TR_FMT2, "OHCI MIN interval: %d offset: %d\n"), TRENTRY(OHCI_VTRACE2_RHPORTST, TR_OHCI, TR_FMT2, "OHCI RHPORTST%d: %04x\n"), @@ -186,6 +187,7 @@ static const struct sam_usbhost_trace_s g_trace2[TRACE2_NSTRINGS] = TRENTRY(EHCI_TRACE2_CLASSENUM_FAILED, TR_EHCI, TR_FMT2, "EHCI Hub port %d usbhost_enumerate() failed: %d\n"), #ifdef HAVE_USBHOST_TRACE_VERBOSE + TRENTRY(EHCI_VTRACE2_EP0CONFIG, TR_EHCI, TR_FMT2, "EHCI EP0 configure speed=%d funcaddr=%d\n"), TRENTRY(EHCI_VTRACE2_ASYNCXFR, TR_EHCI, TR_FMT2, "EHCI Async transfer EP%d buflen=%d\n"), TRENTRY(EHCI_VTRACE2_INTRXFR, TR_EHCI, TR_FMT2, "EHCI Intr Transfer EP%d buflen=%d\n"), TRENTRY(EHCI_VTRACE2_IOCCHECK, TR_EHCI, TR_FMT2, "EHCI IOC EP%d TOKEN=%04x\n"), diff --git a/arch/arm/src/sama5/sam_usbhost.h b/arch/arm/src/sama5/sam_usbhost.h index bd5135e55b..16611471b2 100644 --- a/arch/arm/src/sama5/sam_usbhost.h +++ b/arch/arm/src/sama5/sam_usbhost.h @@ -150,6 +150,7 @@ enum usbhost_trace1codes_e OHCI_TRACE2_CLASSENUM_FAILED, /* OHCI usbhost_enumerate() failed */ #ifdef HAVE_USBHOST_TRACE_VERBOSE + OHCI_VTRACE2_EP0CONFIG, /* OHCI EP0 configuration */ OHCI_VTRACE2_INTERVAL, /* OHCI interval */ OHCI_VTRACE2_MININTERVAL, /* OHCI MIN interval/offset */ OHCI_VTRACE2_RHPORTST, /* OHCI RHPORTST */ @@ -171,6 +172,7 @@ enum usbhost_trace1codes_e EHCI_TRACE2_CLASSENUM_FAILED, /* EHCI usbhost_enumerate() failed */ #ifdef HAVE_USBHOST_TRACE_VERBOSE + EHCI_VTRACE2_EP0CONFIG, /* EHCI EP0 configuration */ EHCI_VTRACE2_ASYNCXFR, /* EHCI Async transfer */ EHCI_VTRACE2_INTRXFR, /* EHCI Interrupt Transfer */ EHCI_VTRACE2_IOCCHECK, /* EHCI IOC */