Skip to content

Commit

Permalink
DM9000: Add missing msleep() in EEPROM wait code.
Browse files Browse the repository at this point in the history
The msleep() call in the code that checks for the
EEPROM controller's busy status was missing.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
  • Loading branch information
Ben Dooks authored and Jeff Garzik committed Jun 25, 2008
1 parent f8dd0ec commit 2fcf06c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/dm9000.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,8 @@ static int dm9000_wait_eeprom(board_info_t *db)
if ((status & EPCR_ERRE) == 0)
break;

msleep(1);

if (timeout-- < 0) {
dev_dbg(db->dev, "timeout waiting EEPROM\n");
break;
Expand Down

0 comments on commit 2fcf06c

Please sign in to comment.