mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-18 06:50:08 +00:00
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>
This commit is contained in:
parent
f8dd0ecbb7
commit
2fcf06ca67
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user