wr32(hw, I40E_VPGEN_VFRTRIG(vf->vf_id), reg);
                i40e_flush(hw);
        }
+       /* clear the VFLR bit in GLGEN_VFLRSTAT */
+       reg_idx = (hw->func_caps.vf_base_id + vf->vf_id) / 32;
+       bit_idx = (hw->func_caps.vf_base_id + vf->vf_id) % 32;
+       wr32(hw, I40E_GLGEN_VFLRSTAT(reg_idx), BIT(bit_idx));
 
        if (i40e_quiesce_vf_pci(vf))
                dev_err(&pf->pdev->dev, "VF %d PCI transactions stuck\n",
        /* tell the VF the reset is done */
        wr32(hw, I40E_VFGEN_RSTAT1(vf->vf_id), I40E_VFR_VFACTIVE);
 
-       /* clear the VFLR bit in GLGEN_VFLRSTAT */
-       reg_idx = (hw->func_caps.vf_base_id + vf->vf_id) / 32;
-       bit_idx = (hw->func_caps.vf_base_id + vf->vf_id) % 32;
-       wr32(hw, I40E_GLGEN_VFLRSTAT(reg_idx), BIT(bit_idx));
        i40e_flush(hw);
        clear_bit(__I40E_VF_DISABLE, &pf->state);
 }
                /* read GLGEN_VFLRSTAT register to find out the flr VFs */
                vf = &pf->vf[vf_id];
                reg = rd32(hw, I40E_GLGEN_VFLRSTAT(reg_idx));
-               if (reg & BIT(bit_idx)) {
+               if (reg & BIT(bit_idx))
                        /* i40e_reset_vf will clear the bit in GLGEN_VFLRSTAT */
-                       if (!test_bit(__I40E_DOWN, &pf->state))
-                               i40e_reset_vf(vf, true);
-               }
+                       i40e_reset_vf(vf, true);
        }
 
        return 0;