Hello,
I am struglling some time with configuring irq for gpio 42 .
It works very good and easily when done using sysfs.
But On doing the same (with same gpio and hardware) from kernel, I have really trouble...
This is how I try to configure the gpio interrupt:
void start_irq()
{
int irq_num = gpio_to_irq(42);
unsigned int ret=request_irq(irq_num, key_irq, IRQF_TRIGGER_RISING , "gpio42", NULL);
}
static irqreturn_t key_irq(int irq, void *dev_id)
{
unsigned int status;
struct timespec curr_tm;
printk("key_irq!!!!!\n");
}
I get no interrupt.
I appreciate any suggestions,
Regards,
Ran