|
|
@@ -3171,7 +3171,7 @@ static irqreturn_t i40e_intr(int irq, void *data)
|
|
|
pf->globr_count++;
|
|
|
} else if (val == I40E_RESET_EMPR) {
|
|
|
pf->empr_count++;
|
|
|
- set_bit(__I40E_EMP_RESET_REQUESTED, &pf->state);
|
|
|
+ set_bit(__I40E_EMP_RESET_INTR_RECEIVED, &pf->state);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -6179,10 +6179,8 @@ static void i40e_reset_and_rebuild(struct i40e_pf *pf, bool reinit)
|
|
|
}
|
|
|
|
|
|
/* re-verify the eeprom if we just had an EMP reset */
|
|
|
- if (test_bit(__I40E_EMP_RESET_REQUESTED, &pf->state)) {
|
|
|
- clear_bit(__I40E_EMP_RESET_REQUESTED, &pf->state);
|
|
|
+ if (test_and_clear_bit(__I40E_EMP_RESET_INTR_RECEIVED, &pf->state))
|
|
|
i40e_verify_eeprom(pf);
|
|
|
- }
|
|
|
|
|
|
i40e_clear_pxe_mode(hw);
|
|
|
ret = i40e_get_capabilities(pf);
|