Skip to content

Commit aa35588

Browse files
RajuRangojugregkh
authored andcommitted
net: amd-xgbe: disable interrupts during pci removal
[ Upstream commit 68c2d6a ] 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]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 7377bde commit aa35588

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
@@ -418,6 +418,9 @@ static void xgbe_pci_remove(struct pci_dev *pdev)
418418

419419
pci_free_irq_vectors(pdata->pcidev);
420420

421+
/* Disable all interrupts in the hardware */
422+
XP_IOWRITE(pdata, XP_INT_EN, 0x0);
423+
421424
xgbe_free_pdata(pdata);
422425
}
423426

0 commit comments

Comments
 (0)