Commit 68c2d6af authored by Raju Rangoju's avatar Raju Rangoju Committed by David S. Miller
Browse files

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: e7537740 ("amd-xgbe: Update PCI support to use new IRQ functions")
Suggested-by: default avatarSelwin Sebastian <Selwin.Sebastian@amd.com>
Signed-off-by: default avatarRaju Rangoju <Raju.Rangoju@amd.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c7223d68
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);
}