smsc95xx: remove EEPROM loaded check
authorSteve Glendinning <steve.glendinning@smsc.com>
Tue, 28 Jul 2009 02:37:58 +0000 (02:37 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 2 Aug 2009 19:54:31 +0000 (12:54 -0700)
The eeprom read & write commands currently check the E2P_CMD_LOADED_ bit is
set before allowing any operations.  This prevents any reading or writing
unless a correctly programmed EEPROM is installed.

This patch removes the check, so it is possible to program blank EEPROMS
via ethtool.

Signed-off-by: Steve Glendinning <steve.glendinning@smsc.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/smsc95xx.c

index fe045896406bdbf3bffa7525621b31b535a265d5..09bd6351f64c1fb7020c764ff11253b04822598c 100644 (file)
@@ -220,11 +220,6 @@ static int smsc95xx_eeprom_confirm_not_busy(struct usbnet *dev)
        do {
                smsc95xx_read_reg(dev, E2P_CMD, &val);
 
-               if (!(val & E2P_CMD_LOADED_)) {
-                       devwarn(dev, "No EEPROM present");
-                       return -EIO;
-               }
-
                if (!(val & E2P_CMD_BUSY_))
                        return 0;