mirror of
https://github.com/torvalds/linux.git
synced 2024-11-21 19:46:16 +00:00
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 <ruanjinjie@huawei.com> Link: https://lore.kernel.org/r/20240912031731.2211698-1-ruanjinjie@huawei.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
17a1d7c5a4
commit
33512ed157
@ -845,13 +845,12 @@ static int tegra_nvec_probe(struct platform_device *pdev)
|
||||
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);
|
||||
if (err) {
|
||||
dev_err(dev, "couldn't request irq\n");
|
||||
return -ENODEV;
|
||||
}
|
||||
disable_irq(nvec->irq);
|
||||
|
||||
tegra_init_i2c_slave(nvec);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user