Skip to content

Commit

Permalink
smsc95xx: remove EEPROM loaded check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steve Glendinning authored and David S. Miller committed Aug 2, 2009
1 parent 81e4321 commit bcd218b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/net/usb/smsc95xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit bcd218b

Please sign in to comment.