Hi all,
I am trying to handle the NNMI interrupt (EXTINTn pin, AM3352 board) in linux as an irq button. I modified gpio_keys.c and I was able to hook the interrupt but I noticed that it seems the processor stops as soon as I hook up the interrupt and continues whenever I press the button connected to the EXTINTn pin. Here's a sample log:
[ 2.264022] Inside gpio_keys_get_devtree_pdata.
[ 2.290336] gpio-keys gpio_buttons.6: gpio_keys_setup_key: Setting up button button0 as IRQ button no.: 23
[ 2.309258] gpio-keys gpio_buttons.6: gpio_keys_setup_key: now calling request_any_context_irq: irq[23] irqflags[0x4] <-- here the processor stops
[ 8.875182] gpio-keys gpio_buttons.6: gpio_keys_setup_key: done calling request_any_context_irq. <-- processor continues from here on when I press the button
[ 8.884556] [sched_delayed] sched: RT throttling activated
[ 8.898326] gpio-keys gpio_buttons.6: gpio_keys_setup_key: IRQ[23] for button[button0] has been claimed
[ 8.909148] input: gpio_buttons.6 as /devices/gpio_buttons.6/input/input0
[ 8.917840] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 00:00:08 UTC (946684808)
So it seems I was able to setup the interrupt hook but I am not passing the correct irq flags. I tried every combination but the output is the same.
Regards,
Marlon