NMI pin is connected to LTC3226EUD 2-Cell Supercap Charger With
Backup PowerPath Controller. when power goes it will drive the nmi pin low i.e activate the interrupt.So in this case i need to send signal to userspace to do some backup stuff inside my application. but interrupt line is always high and ISR handler does not return. I tried IRQF_ONESHOT working only once but it is disabling the line.
request_threaded_irq(7 , power_isr ,NULL, IRQF_TRIGGER_LOW|IRQF_ONESHOT,
"power fail" ,NULL);
this is how i am registering the interrupt handler. with IRQF_ONESHOT it is working only once. it is disabling the interrupt line.
please give some solution.
But if power comes i need to abort systematic poweroff.But IRQF_ONESHOT disabling NMI line. if power goes next time it will not fire interrupt.
Please give some solution for this problem.