XHCI: add device attach time delay after starting the controller.

This commit is contained in:
Martin Whitaker 2021-12-22 19:08:14 +00:00
parent 8069b8724b
commit eb58a63ad4

View File

@ -982,6 +982,7 @@ void *xhci_init(uintptr_t base_addr)
pm_map[heap_segment].end = heap_segment_end;
return NULL;
}
usleep(100*MILLISEC); // USB maximum device attach time.
// Record the controller context size.
uint32_t context_size = cap_regs->hcc_params1 & 0x4 ? 64 : 32;