mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
net/e1000: Fix EEPROM access error
Commit 951860634f may have changed
the logic unintentially from "if (!(swfw_sync & (fwmask | swmask)))"
to "if ((swfw_sync & swmask) && !(swfw_sync & fwmask))". This change
breaks some e1000 NIC with a message "ERROR: Unable to read EEPROM!".
Signed-off-by: York Sun <yorksun@freescale.com>
CC: Marek Vasut <marex@denx.de>
CC: Tim Harvey <tharvey@gateworks.com>
Acked-by: Marcel Ziswiler <marcel@ziswiler.com>
This commit is contained in:
parent
998194584e
commit
76f8cdb203
1 changed files with 1 additions and 1 deletions
|
|
@ -1113,7 +1113,7 @@ e1000_swfw_sync_acquire(struct e1000_hw *hw, uint16_t mask)
|
||||||
return -E1000_ERR_SWFW_SYNC;
|
return -E1000_ERR_SWFW_SYNC;
|
||||||
|
|
||||||
swfw_sync = E1000_READ_REG(hw, SW_FW_SYNC);
|
swfw_sync = E1000_READ_REG(hw, SW_FW_SYNC);
|
||||||
if ((swfw_sync & swmask) && !(swfw_sync & fwmask))
|
if (!(swfw_sync & (fwmask | swmask)))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* firmware currently using resource (fwmask) */
|
/* firmware currently using resource (fwmask) */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue