]> git.hungrycats.org Git - linux/commitdiff
[PATCH] e1000: fix eeprom update to include e1000_standby_eeprom
authorGanesh Venkatesan <ganesh.venkatesan@intel.com>
Tue, 13 Apr 2004 09:40:07 +0000 (05:40 -0400)
committerJeff Garzik <jgarzik@redhat.com>
Tue, 13 Apr 2004 09:40:07 +0000 (05:40 -0400)
A Bug in e1000_spi_eeprom_ready where the Chip Select bit wasn't being
toggled after every status register read (if the eeprom wasn't ready after
the first status register read). The call to e1000_standby_eeprom manages
the CS bit correctly

drivers/net/e1000/e1000_hw.c

index 8caff9745dab762e3092145ef5bf04e7c8e0c91d..de1446ff1f0174c12983802f1d93796dda113b62 100644 (file)
@@ -3344,6 +3344,7 @@ e1000_spi_eeprom_ready(struct e1000_hw *hw)
         udelay(5);
         retry_count += 5;
 
+        e1000_standby_eeprom(hw);
     } while(retry_count < EEPROM_MAX_RETRY_SPI);
 
     /* ATMEL SPI write time could vary from 0-20mSec on 3.3V devices (and