]> xenbits.xensource.com Git - seabios.git/commitdiff
xhci: Use msleep() instead of mdelay() for port status delay.
authorKevin O'Connor <kevin@koconnor.net>
Thu, 8 May 2014 21:59:55 +0000 (17:59 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Thu, 8 May 2014 22:44:35 +0000 (18:44 -0400)
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

index f64f5629b86ee1fb794f1d250e65f5adc597f198..ca1fe2517f4206e542babe17b61609971153f354 100644 (file)
@@ -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.