[SeaBIOS] [PATCH] xhci: Use msleep() instead of mdelay() for port status delay.
Kevin O'Connor
kevin at koconnor.net
Fri May 9 00:02:33 CEST 2014
Use msleep() so that interrupts and other threads can occur during the
delay.
Signed-off-by: Kevin O'Connor <kevin at 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.
--
1.9.0
More information about the SeaBIOS
mailing list