GPIO in the kernel: an introduction
GPIO in the kernel: an introduction
Posted Oct 3, 2016 19:12 UTC (Mon) by annonch (guest, #111527)Parent article: GPIO in the kernel: an introduction
Is it possible to register an interrupt to both falling edge and rising edge and then distinguish which case it is inside the interrupt handler?
When I try to register two interrupts I get an error resource is busy, I think because it is the same irq_number (-16)
When I try to register the interrupts with the IRQF_SHARED | IRQF_TRIGGER_RISING flags I get Invalid argument (-22)
So I create a interrupt with flags IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING but when the interrupt is called, I want to distinguish the two conditions separately.
It is an arm device with kernel 4.4.21
Any advice? :)
