david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[3c5x9] Avoid use of sleep() in driver code

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2016-03-22 15:14:07 +00:00
parent c32b07b81b
commit c640b954cd
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ static void t509_enable ( struct nic *nic ) {
else if (connector == utp) {
GO_WINDOW(nic->ioaddr,4);
outw(ENABLE_UTP, nic->ioaddr + EP_W4_MEDIA_TYPE);
sleep(2); /* Give time for media to negotiate */
mdelay(2000); /* Give time for media to negotiate */
GO_WINDOW(nic->ioaddr,1);
}