]> err.no Git - linux-2.6/commitdiff
DM9000: Add missing msleep() in EEPROM wait code.
authorBen Dooks <ben-linux@fluff.org>
Tue, 24 Jun 2008 21:16:05 +0000 (22:16 +0100)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 25 Jun 2008 02:58:17 +0000 (22:58 -0400)
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>
drivers/net/dm9000.c

index 5ad2ec537684a5eda8ca1bcad93db619d4fa322c..92233400e6f9153e61663663d97d9b7b00b610d1 100644 (file)
@@ -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;