aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2008-06-24 22:16:05 +0100
committerJeff Garzik <jgarzik@redhat.com>2008-06-24 22:58:17 -0400
commit2fcf06ca67d1cd5fcf748b3f70ef9e724951fab4 (patch)
tree2f72d9bb0a0d26ae8e04ce6594fddb2d2ae418b0
parentf8dd0ecbb74d4b220b105d77c0633945ebb5453e (diff)
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>
-rw-r--r--drivers/net/dm9000.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/dm9000.c b/drivers/net/dm9000.c
index 5ad2ec53768..92233400e6f 100644
--- a/drivers/net/dm9000.c
+++ b/drivers/net/dm9000.c
@@ -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;