Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[3c5x9] Avoid use of sleep() in driver code
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Mar 22, 2016
1 parent c32b07b commit c640b95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drivers/net/3c5x9.c
Expand Up @@ -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);
}

Expand Down

0 comments on commit c640b95

Please sign in to comment.