mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 07:34:31 +00:00
usb: usbeth: smsc95xx: remove EEPROM loaded check
[port of Linux kernel commit bcd218be5aeb by Steve Glendinning] 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. Signed-off-by: Michael Spang <spang@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Marek Vasut <marex@denx.de>
This commit is contained in:
parent
61755c7908
commit
032868a432
1 changed files with 0 additions and 4 deletions
|
@ -265,10 +265,6 @@ static int smsc95xx_eeprom_confirm_not_busy(struct ueth_data *dev)
|
||||||
|
|
||||||
do {
|
do {
|
||||||
smsc95xx_read_reg(dev, E2P_CMD, &val);
|
smsc95xx_read_reg(dev, E2P_CMD, &val);
|
||||||
if (!(val & E2P_CMD_LOADED_)) {
|
|
||||||
debug("No EEPROM present\n");
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
if (!(val & E2P_CMD_BUSY_))
|
if (!(val & E2P_CMD_BUSY_))
|
||||||
return 0;
|
return 0;
|
||||||
udelay(40);
|
udelay(40);
|
||||||
|
|
Loading…
Reference in a new issue