Skip to content

Commit

Permalink
net: amd-xgbe: disable interrupts during pci removal
Browse files Browse the repository at this point in the history
Hardware interrupts are enabled during the pci probe, however,
they are not disabled during pci removal.

Disable all hardware interrupts during pci removal to avoid any
issues.

Fixes: e753774 ("amd-xgbe: Update PCI support to use new IRQ functions")
Suggested-by: Selwin Sebastian <[email protected]>
Signed-off-by: Raju Rangoju <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
RajuRangoju authored and davem330 committed Feb 9, 2022
1 parent c7223d6 commit 68c2d6a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/ethernet/amd/xgbe/xgbe-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,9 @@ static void xgbe_pci_remove(struct pci_dev *pdev)

pci_free_irq_vectors(pdata->pcidev);

/* Disable all interrupts in the hardware */
XP_IOWRITE(pdata, XP_INT_EN, 0x0);

xgbe_free_pdata(pdata);
}

Expand Down

0 comments on commit 68c2d6a

Please sign in to comment.