From: Michael Spang Date: Wed, 6 Mar 2013 14:08:33 +0000 (+0000) Subject: usb: usbeth: smsc95xx: remove EEPROM loaded check X-Git-Tag: v2013.04-rc2~23^2~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=032868a432d7107a7739c3ba82c663525a73a3d5;p=u-boot 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 Signed-off-by: Simon Glass Acked-by: Marek Vasut --- diff --git a/drivers/usb/eth/smsc95xx.c b/drivers/usb/eth/smsc95xx.c index dc5ca65463..fd8f8a7606 100644 --- a/drivers/usb/eth/smsc95xx.c +++ b/drivers/usb/eth/smsc95xx.c @@ -265,10 +265,6 @@ static int smsc95xx_eeprom_confirm_not_busy(struct ueth_data *dev) do { smsc95xx_read_reg(dev, E2P_CMD, &val); - if (!(val & E2P_CMD_LOADED_)) { - debug("No EEPROM present\n"); - return -1; - } if (!(val & E2P_CMD_BUSY_)) return 0; udelay(40);