“4a90c7e86202f46fa9af011bdbcdf36e355d1721”上不存在“drivers/acpi/acpica/acopcode.h”
提交 3f0ea236 编写于 作者: M Martin Kaiser 提交者: Lorenzo Pieralisi

PCI: altera-msi: Remove IRQ handler and data in one go

Call irq_set_chained_handler_and_data() to clear the chained handler
and the handler's data under irq_desc->lock.

See also 2cf5a03c ("PCI/keystone: Fix race in installing chained
IRQ handler").

Link: https://lore.kernel.org/r/20210115212435.19940-1-martin@kaiser.cxSigned-off-by: NMartin Kaiser <martin@kaiser.cx>
Signed-off-by: NLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
上级 7c53f6b6
...@@ -204,8 +204,7 @@ static int altera_msi_remove(struct platform_device *pdev) ...@@ -204,8 +204,7 @@ static int altera_msi_remove(struct platform_device *pdev)
struct altera_msi *msi = platform_get_drvdata(pdev); struct altera_msi *msi = platform_get_drvdata(pdev);
msi_writel(msi, 0, MSI_INTMASK); msi_writel(msi, 0, MSI_INTMASK);
irq_set_chained_handler(msi->irq, NULL); irq_set_chained_handler_and_data(msi->irq, NULL, NULL);
irq_set_handler_data(msi->irq, NULL);
altera_free_domains(msi); altera_free_domains(msi);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册