[beagleboard] Re: detecting interrupt on GPIO in kernel module

2018-02-11 Thread rakshithp . 46
use of gpio_int_name On Tuesday, 26 August 2014 19:38:01 UTC+5:30, Siddarth Sharma wrote: > > I am toggling the input into a GPIO line on my BeagleBone from high to low > every 500 ms using an Atmel uC. I have registered a handler for this in my > Linux Kernel Module, but the handler is not bei

[beagleboard] Re: detecting interrupt on GPIO in kernel module

2014-09-08 Thread neo star
Hi I see that some function definitions are missing in your code. Can you share those as well, so that i too can try and figure out the problem. Especially the functions like gpio_to_irq() ... Thanks. On Tuesday, August 26, 2014 7:38:01 PM UTC+5:30, Siddarth Sharma wrote: > > I am toggling the

[beagleboard] Re: detecting interrupt on GPIO in kernel module

2014-08-26 Thread Siddarth Sharma
Does the problem have something to do with dev id paramter in the interrupt handler? On Tuesday, August 26, 2014 3:08:01 PM UTC+1, Siddarth Sharma wrote: > > I am toggling the input into a GPIO line on my BeagleBone from high to low > every 500 ms using an Atmel uC. I have registered a handler f

Re: [beagleboard] Re: detecting interrupt on GPIO in kernel module

2014-09-08 Thread kavitha bk
Does cat /proc/interrupts give show anything for 214. Check whether It is going to architecture specific impelemtation of gpio_to_irq On Tue, Sep 9, 2014 at 8:26 AM, neo star wrote: > Hi > > I see that some function definitions are missing in your code. Can you > share those as well, so that i

Re: [beagleboard] Re: detecting interrupt on GPIO in kernel module

2014-09-09 Thread neo
Hi Kavita A generic question regarding interrupts. If i register an interrupt using request_threaded_irq() or request_irq() will that be listed in /proc/interrupts ? On Tuesday, September 9, 2014 11:17:19 AM UTC+5:30, kavitha wrote: > > > Does cat /proc/interrupts give show anything for 214. > >

Re: [beagleboard] Re: detecting interrupt on GPIO in kernel module

2014-09-09 Thread kavitha bk
Yes it does show in cat /proc/interrupts It doesnot matter you use request_threaded_irq or request_irq request_irq(unsigned int irq, irq_handler_t handler, unsigned long flags, const char *name, void *dev) Here the handler will be run in interrupt context and request_threaded_irq(uns

Re: [beagleboard] Re: detecting interrupt on GPIO in kernel module

2014-09-09 Thread neo
Hi Kavita Thanks for clarifying On Wednesday, September 10, 2014 10:00:06 AM UTC+5:30, kavitha wrote: > > Yes it does show in cat /proc/interrupts > It doesnot matter you use request_threaded_irq or request_irq > > request_irq(unsigned int irq, irq_handler_t handler, unsigned long flags, >