mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-07 18:05:21 +02:00
PCI: dra7xx: Fix threaded IRQ request for "dra7xx-pcie-main" IRQ
commit03f84b3bab
upstream. Commitda87d35a6e
("PCI: dra7xx: Use threaded IRQ handler for "dra7xx-pcie-main" IRQ") switched from devm_request_irq() to devm_request_threaded_irq() for the "dra7xx-pcie-main" interrupt. Since the primary handler was set to NULL, the "IRQF_ONESHOT" flag should have also been set. Fix this. Fixes:da87d35a6e
("PCI: dra7xx: Use threaded IRQ handler for "dra7xx-pcie-main" IRQ") Suggested-by: Vignesh Raghavendra <vigneshr@ti.com> Link: https://lore.kernel.org/linux-pci/20240827122422.985547-2-s-vadapalli@ti.com Reported-by: Udit Kumar <u-kumar1@ti.com> Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com> Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org> Reviewed-by: Kevin Hilman <khilman@baylibre.com> Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
894f21117f
commit
b91d041e07
|
@ -841,7 +841,8 @@ static int dra7xx_pcie_probe(struct platform_device *pdev)
|
||||||
dra7xx->mode = mode;
|
dra7xx->mode = mode;
|
||||||
|
|
||||||
ret = devm_request_threaded_irq(dev, irq, NULL, dra7xx_pcie_irq_handler,
|
ret = devm_request_threaded_irq(dev, irq, NULL, dra7xx_pcie_irq_handler,
|
||||||
IRQF_SHARED, "dra7xx-pcie-main", dra7xx);
|
IRQF_SHARED | IRQF_ONESHOT,
|
||||||
|
"dra7xx-pcie-main", dra7xx);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
dev_err(dev, "failed to request irq\n");
|
dev_err(dev, "failed to request irq\n");
|
||||||
goto err_gpio;
|
goto err_gpio;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user