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
1 changed files with 1 additions and 0 deletions

View File

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