Browse Source

DM9000: Add missing msleep() in EEPROM wait code.

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>
Ben Dooks 17 years ago
parent
commit
2fcf06ca67
1 changed files with 2 additions and 0 deletions
  1. 2 0
      drivers/net/dm9000.c

+ 2 - 0
drivers/net/dm9000.c

@@ -343,6 +343,8 @@ static int dm9000_wait_eeprom(board_info_t *db)
 		if ((status & EPCR_ERRE) == 0)
 		if ((status & EPCR_ERRE) == 0)
 			break;
 			break;
 
 
+		msleep(1);
+
 		if (timeout-- < 0) {
 		if (timeout-- < 0) {
 			dev_dbg(db->dev, "timeout waiting EEPROM\n");
 			dev_dbg(db->dev, "timeout waiting EEPROM\n");
 			break;
 			break;