On Wed, Apr 07, 2021 at 02:34:19PM +0800, Tian Tao wrote: > 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 because of requesting. > > this patch is made base on "add IRQF_NO_AUTOEN for request_irq" which > is being merged: https://lore.kernel.org/patchwork/patch/1388765/ This assumes that the interrupt is not shared. This could be fixed by requesting the IRQ after init (and releasing before deinit). Best Regards Michał Mirosław