Other Parts Discussed in Thread: SK-AM62
We have seen an issue on our system with AM62x. System setup is:
- SW version 08.05.00.21
- Nothing connected to USB0 (port is connected directly to USB 2.0 connector, no USB device is inserted), USB 1 is not used (USB 2.0 signals left unconnected on our system)
- Boot from eMMC (both u-boot & linux)
Test case:
Repetitive restarts of the system (no power cycle). USB initialization failure after random number of restarts (maximum observed successive restart cycles without the issue manifestation was 70). The issue remained until a power cycle.
The issue manifestation in the kernel log:

SW team has worked on it and finally we found out it helps to use this workaround:
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c
index c968dd8653..141138a6ee 100644
--- a/drivers/usb/host/xhci.c
+++ b/drivers/usb/host/xhci.c
@@ -5195,6 +5195,8 @@ int xhci_gen_setup(struct usb_hcd *hcd, xhci_get_quirks_t get_quirks)
unsigned int minor_rev;
int retval;
+ // NGBP quirk
+ usleep_range(18000,20000);
/* Accept arbitrarily long scatter-gather lists */
hcd->self.sg_tablesize = ~0;
I think there might be an issue at USB linux driver (so the driver does not work reliable with AM62x in specific case). I'd appreciate if you could check the issue and workaround and provide a feedback to us.
Thanks!
Libor

