From: Ben Dooks Date: Tue, 24 Jun 2008 21:16:05 +0000 (+0100) Subject: DM9000: Add missing msleep() in EEPROM wait code. X-Git-Tag: v2.6.27-rc1~969^2~255^2~18 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fcf06ca67d1cd5fcf748b3f70ef9e724951fab4;p=linux-2.6 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 5ad2ec5376..92233400e6 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;