Commit 33512ed1 authored by Jinjie Ruan's avatar Jinjie Ruan Committed by Greg Kroah-Hartman

staging: nvec: Use IRQF_NO_AUTOEN flag in request_irq()

disable_irq() after request_irq() still has a time gap in which
interrupts can come. request_irq() with IRQF_NO_AUTOEN flag will
disable IRQ auto-enable when request IRQ.
Signed-off-by: default avatarJinjie Ruan <ruanjinjie@huawei.com>
Link: https://lore.kernel.org/r/20240912031731.2211698-1-ruanjinjie@huawei.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 17a1d7c5
...@@ -845,13 +845,12 @@ static int tegra_nvec_probe(struct platform_device *pdev) ...@@ -845,13 +845,12 @@ static int tegra_nvec_probe(struct platform_device *pdev)
return PTR_ERR(nvec->gpiod); return PTR_ERR(nvec->gpiod);
} }
err = devm_request_irq(dev, nvec->irq, nvec_interrupt, 0, err = devm_request_irq(dev, nvec->irq, nvec_interrupt, IRQF_NO_AUTOEN,
"nvec", nvec); "nvec", nvec);
if (err) { if (err) {
dev_err(dev, "couldn't request irq\n"); dev_err(dev, "couldn't request irq\n");
return -ENODEV; return -ENODEV;
} }
disable_irq(nvec->irq);
tegra_init_i2c_slave(nvec); tegra_init_i2c_slave(nvec);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment