]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/net/e1000.c
net/e1000: Fix EEPROM access error
[karo-tx-uboot.git] / drivers / net / e1000.c
index 6e8765cf7b61bebc6060e26ef31143d8b784f25b..b092867272f5bbc7c9a84eeda6777f22ee5e2abc 100644 (file)
@@ -1113,7 +1113,7 @@ e1000_swfw_sync_acquire(struct e1000_hw *hw, uint16_t mask)
                        return -E1000_ERR_SWFW_SYNC;
 
                swfw_sync = E1000_READ_REG(hw, SW_FW_SYNC);
-               if ((swfw_sync & swmask) && !(swfw_sync & fwmask))
+               if (!(swfw_sync & (fwmask | swmask)))
                        break;
 
                /* firmware currently using resource (fwmask) */