Skip to content

Commit 264ccc9

Browse files
Shannon NelsonJeff Kirsher
authored andcommitted
i40e: no pf reset at pci remove
The PF reset to clean up at the end of the remove is a nice thing to do, but it also removes any LAA setting that Wake On LAN wants for future wake up. Change-ID: Ic090ec714df2d722281d11735cf75f2aa4432e2c Signed-off-by: Shannon Nelson <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 6252c7e commit 264ccc9

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/net/ethernet/intel/i40e/i40e_main.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8898,7 +8898,6 @@ static void i40e_remove(struct pci_dev *pdev)
88988898
{
88998899
struct i40e_pf *pf = pci_get_drvdata(pdev);
89008900
i40e_status ret_code;
8901-
u32 reg;
89028901
int i;
89038902

89048903
i40e_dbg_pf_exit(pf);
@@ -8976,11 +8975,6 @@ static void i40e_remove(struct pci_dev *pdev)
89768975
kfree(pf->irq_pile);
89778976
kfree(pf->vsi);
89788977

8979-
/* force a PF reset to clean anything leftover */
8980-
reg = rd32(&pf->hw, I40E_PFGEN_CTRL);
8981-
wr32(&pf->hw, I40E_PFGEN_CTRL, (reg | I40E_PFGEN_CTRL_PFSWR_MASK));
8982-
i40e_flush(&pf->hw);
8983-
89848978
iounmap(pf->hw.hw_addr);
89858979
kfree(pf);
89868980
pci_release_selected_regions(pdev,

0 commit comments

Comments
 (0)