diff options
author | Ben Dooks <ben-linux@fluff.org> | 2008-06-24 22:16:05 +0100 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-06-24 22:58:17 -0400 |
commit | 2fcf06ca67d1cd5fcf748b3f70ef9e724951fab4 (patch) | |
tree | 2f72d9bb0a0d26ae8e04ce6594fddb2d2ae418b0 /drivers/net/dm9000.c | |
parent | f8dd0ecbb74d4b220b105d77c0633945ebb5453e (diff) | |
download | op-kernel-dev-2fcf06ca67d1cd5fcf748b3f70ef9e724951fab4.zip op-kernel-dev-2fcf06ca67d1cd5fcf748b3f70ef9e724951fab4.tar.gz |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/dm9000.c b/drivers/net/dm9000.c index 5ad2ec5..9223340 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; |