提交 d9c66676 编写于 作者: R Raju Rangoju 提交者: Zheng Zengkai

net: amd-xgbe: disable interrupts during pci removal

stable inclusion
from stable-v5.10.101
commit ff6c9e0fcee5481b491aab49d55660a59ead1a81
bugzilla: https://gitee.com/openeuler/kernel/issues/I5669Z

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ff6c9e0fcee5481b491aab49d55660a59ead1a81

--------------------------------

[ Upstream commit 68c2d6af ]

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: NSelwin Sebastian <Selwin.Sebastian@amd.com>
Signed-off-by: NRaju Rangoju <Raju.Rangoju@amd.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NYu Liao <liaoyu15@huawei.com>
Reviewed-by: NWei Li <liwei391@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 b3638130
...@@ -418,6 +418,9 @@ static void xgbe_pci_remove(struct pci_dev *pdev) ...@@ -418,6 +418,9 @@ static void xgbe_pci_remove(struct pci_dev *pdev)
pci_free_irq_vectors(pdata->pcidev); pci_free_irq_vectors(pdata->pcidev);
/* Disable all interrupts in the hardware */
XP_IOWRITE(pdata, XP_INT_EN, 0x0);
xgbe_free_pdata(pdata); xgbe_free_pdata(pdata);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册