From: Ben Dooks Date: Tue, 24 Jun 2008 21:16:05 +0000 (+0100) Subject: DM9000: Add missing msleep() in EEPROM wait code. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2fcf06ca67d1cd5fcf748b3f70ef9e724951fab4;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Jeff Garzik --- 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;