mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-27 11:50:33 +07:00
i40e: Clear recovery pending, if reset failed
If pf_reset failed, it becomes necessary to clear recovery pending bit, instead of falling through the setup process. Change-ID: Ic1611e6a32741fe3a2782ec7be173cb65e7492ed Signed-off-by: Akeem G Abodunrin <akeem.g.abodunrin@intel.com> Tested-by: Jim Young <jamesx.m.young@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
10bc478a2a
commit
b556540030
@ -5367,8 +5367,10 @@ static void i40e_reset_and_rebuild(struct i40e_pf *pf, bool reinit)
|
|||||||
* because the reset will make them disappear.
|
* because the reset will make them disappear.
|
||||||
*/
|
*/
|
||||||
ret = i40e_pf_reset(hw);
|
ret = i40e_pf_reset(hw);
|
||||||
if (ret)
|
if (ret) {
|
||||||
dev_info(&pf->pdev->dev, "PF reset failed, %d\n", ret);
|
dev_info(&pf->pdev->dev, "PF reset failed, %d\n", ret);
|
||||||
|
goto end_core_reset;
|
||||||
|
}
|
||||||
pf->pfr_count++;
|
pf->pfr_count++;
|
||||||
|
|
||||||
if (test_bit(__I40E_DOWN, &pf->state))
|
if (test_bit(__I40E_DOWN, &pf->state))
|
||||||
|
Loading…
Reference in New Issue
Block a user