From: Kevin O'Connor Date: Thu, 8 May 2014 21:59:55 +0000 (-0400) Subject: xhci: Use msleep() instead of mdelay() for port status delay. X-Git-Tag: rel-1.7.5-rc1~3 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=10572ed96c6a38557c40ffa6c7a7fe4d8fa04a10;p=seabios.git xhci: Use msleep() instead of mdelay() for port status delay. Use msleep() so that interrupts and other threads can occur during the delay. Signed-off-by: Kevin O'Connor --- 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.