Skip to content

Commit 68c2d6a

Browse files
RajuRangojudavem330
authored andcommitted
net: amd-xgbe: disable interrupts during pci removal
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]>
1 parent c7223d6 commit 68c2d6a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/net/ethernet/amd/xgbe/xgbe-pci.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,9 @@ static void xgbe_pci_remove(struct pci_dev *pdev)
425425

426426
pci_free_irq_vectors(pdata->pcidev);
427427

428+
/* Disable all interrupts in the hardware */
429+
XP_IOWRITE(pdata, XP_INT_EN, 0x0);
430+
428431
xgbe_free_pdata(pdata);
429432
}
430433

0 commit comments

Comments
 (0)