Use msleep() so that interrupts and other threads can occur during the delay.
Signed-off-by: Kevin O'Connor kevin@koconnor.net --- src/hw/usb-xhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/hw/usb-xhci.c b/src/hw/usb-xhci.c index f64f562..ca1fe25 100644 --- a/src/hw/usb-xhci.c +++ b/src/hw/usb-xhci.c @@ -705,7 +705,7 @@ configure_xhci(void *data) writel(&xhci->op->usbcmd, reg);
// FIXME: try find a more elegant way than a fixed delay - mdelay(100); + msleep(100);
usb_enumerate(&xhci->hub); // XXX - should walk list of pipes and free unused pipes.