Hi Mahesh,
On 4/19/22 14:18, Mahesh Vardhamanaiah wrote:
Hi HPS,
I think there is some confusion the error I am printing is in HEX value so the
decimal error code is
USB_ERR_IOERROR, /* 18 */
Good catch.
That IOERROR is hiding a hardware error code, maybe you could also print
that:
if (XHCI_TRB_2_ERROR_GET(temp) != XHCI_TRB_ERROR_SUCCESS)
err = USB_ERR_IOERROR;
Add:
printf("XHCI_TRB_2_ERROR_GET(temp) = %d\n", XHCI_TRB_2_ERROR_GET(temp));
Like this:
> if (XHCI_TRB_2_ERROR_GET(temp) != XHCI_TRB_ERROR_SUCCESS) {
> printf("XHCI_TRB_2_ERROR_GET(temp) = %d\n",
XHCI_TRB_2_ERROR_GET(temp));
> err = USB_ERR_IOERROR;
> }
--HPS