Skip to content

Commit 33512ed

Browse files
Jinjie Ruangregkh
authored andcommitted
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: Jinjie Ruan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 17a1d7c commit 33512ed

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/staging/nvec/nvec.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -845,13 +845,12 @@ static int tegra_nvec_probe(struct platform_device *pdev)
845845
return PTR_ERR(nvec->gpiod);
846846
}
847847

848-
err = devm_request_irq(dev, nvec->irq, nvec_interrupt, 0,
848+
err = devm_request_irq(dev, nvec->irq, nvec_interrupt, IRQF_NO_AUTOEN,
849849
"nvec", nvec);
850850
if (err) {
851851
dev_err(dev, "couldn't request irq\n");
852852
return -ENODEV;
853853
}
854-
disable_irq(nvec->irq);
855854

856855
tegra_init_i2c_slave(nvec);
857856

0 commit comments

Comments
 (0)