Dear All , Can anyone please help me to understand why request_irq is failing
I am using OMAP L138 [ARM with LINUX ]
REQUEST_IRQ always fails with EINVAL..
Please note that i am trying to configure an GPIO in LINUX as an INTERRUPT pin .
To do this the very first step is failing .PLease find the below code :-
return_value = request_irq(48,gpio_intr_handler,NULL,DRIVER_DEV_FILE,NULL);
where :-
1. static irqreturn_t gpio_intr_handler(int irq,void *dev_id)
{
printk("\n\nI am in ISR of GPIO .STATEMENT 1...\n");
return IRQ_HANDLED;
}
2. 48 is the interrupt pin for GPIO Bank 6.
Can you please guide me where am i going wrong for this ....
As it is just an plain IRQ register process ...
Also the return value is -22
Can't i use normal LINUX mechanism for GPIO ...
Please help me !!!!!!!!!!!!!!!