mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-11 23:50:25 +00:00
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>
This commit is contained in:
parent
81e4321388
commit
bcd218be5a
@ -220,11 +220,6 @@ static int smsc95xx_eeprom_confirm_not_busy(struct usbnet *dev)
|
|||||||
do {
|
do {
|
||||||
smsc95xx_read_reg(dev, E2P_CMD, &val);
|
smsc95xx_read_reg(dev, E2P_CMD, &val);
|
||||||
|
|
||||||
if (!(val & E2P_CMD_LOADED_)) {
|
|
||||||
devwarn(dev, "No EEPROM present");
|
|
||||||
return -EIO;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!(val & E2P_CMD_BUSY_))
|
if (!(val & E2P_CMD_BUSY_))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user