summaryrefslogtreecommitdiffstats
path: root/drivers/net/dm9000.c
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2008-06-24 23:16:05 +0200
committerJeff Garzik <jgarzik@redhat.com>2008-06-25 04:58:17 +0200
commit2fcf06ca67d1cd5fcf748b3f70ef9e724951fab4 (patch)
tree2f72d9bb0a0d26ae8e04ce6594fddb2d2ae418b0 /drivers/net/dm9000.c
parentDM9000: Allow the use of the NSR register to get link status. (diff)
downloadlinux-2fcf06ca67d1cd5fcf748b3f70ef9e724951fab4.tar.xz
linux-2fcf06ca67d1cd5fcf748b3f70ef9e724951fab4.zip
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>
Diffstat (limited to 'drivers/net/dm9000.c')
-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 5ad2ec537684..92233400e6f9 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;