diff options
author | Steve Glendinning <steve.glendinning@smsc.com> | 2009-07-28 04:37:58 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-08-02 21:54:31 +0200 |
commit | bcd218be5aebed94951a750b1d477aea86fb68ea (patch) | |
tree | 13e8f349a69a591c7e92239361521a817ce79cb1 /drivers/net/usb | |
parent | inet6: functions shadow global variable (diff) | |
download | linux-bcd218be5aebed94951a750b1d477aea86fb68ea.tar.xz linux-bcd218be5aebed94951a750b1d477aea86fb68ea.zip |
smsc95xx: remove EEPROM loaded check
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>
Diffstat (limited to 'drivers/net/usb')
-rw-r--r-- | drivers/net/usb/smsc95xx.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c index fe045896406b..09bd6351f64c 100644 --- a/drivers/net/usb/smsc95xx.c +++ b/drivers/net/usb/smsc95xx.c @@ -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; |