net/atlantic: use EEPROM magic as a device address
[dpdk.git] / drivers / net / atlantic / hw_atl / hw_atl_utils.c
index 13f02b9..4299b70 100644 (file)
@@ -305,6 +305,10 @@ int hw_atl_utils_fw_downld_dwords(struct aq_hw_s *self, u32 a,
                        AQ_HW_WAIT_FOR(!(0x100 & aq_hw_read_reg(self,
                                                           HW_ATL_MIF_CMD)),
                                       1, 1000U);
+                       if (err) {
+                               err = -ETIMEDOUT;
+                               goto err_exit;
+                       }
 
                *(p++) = aq_hw_read_reg(self, HW_ATL_MIF_VAL);
                a += 4;