aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2014-05-08 17:59:55 -0400
committerKevin O'Connor <kevin@koconnor.net>2014-05-08 18:44:35 -0400
commit10572ed96c6a38557c40ffa6c7a7fe4d8fa04a10 (patch)
tree9acf188f7dbd1fcff077634c01f9f0b7c457dbf9 /src
parent6ad7b5b9772a0b8bab20f1386c720f474cad5398 (diff)
downloadseabios-hppa-10572ed96c6a38557c40ffa6c7a7fe4d8fa04a10.zip
seabios-hppa-10572ed96c6a38557c40ffa6c7a7fe4d8fa04a10.tar.gz
seabios-hppa-10572ed96c6a38557c40ffa6c7a7fe4d8fa04a10.tar.bz2
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 <kevin@koconnor.net>
Diffstat (limited to 'src')
-rw-r--r--src/hw/usb-xhci.c2
1 files changed, 1 insertions, 1 deletions
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.