On 9 February 2018 at 14:39, Dmitry Torokhov <[email protected]> wrote: > On Thu, Feb 8, 2018 at 10:08 PM, Baolin Wang <[email protected]> wrote: >> On some platforms (such as Spreadtrum platform), the GPIO keys can only >> be triggered by level type. > > How do you stop the interrupt from re-triggering as long as the key > stays pressed?
We will set the level type irq handler as handle_level_irq(), in this function, it will mask and ack the irq firstly. -- Baolin.wang Best Regards

