Re: Question about using new request_threaded_irq

2012-12-17 Thread Jonathan Corbet
On Mon, 17 Dec 2012 17:06:43 +0100 Marcos Lois Bermúdez wrote: > I'm a bit confusing because i see a outdated page that talks about this > new IRQ API, but now i see that it's very outdated: > > http://lwn.net/Articles/302043/ I normally encourage people to rely on LWN for everything, of cours

Re: Question about using new request_threaded_irq

2012-12-17 Thread Marcos Lois Bermúdez
Hi, I lot of thanks for you fast reply. It seem that i swap the mean of handler parameters, so i now see it correct. :). Excuse for my newbie question. handler is the primary handler, and if NULL a default primary handler is installed, and thread_fn is the thread handler. I'm a bit confusi

Re: Question about using new request_threaded_irq

2012-12-17 Thread Jonathan Corbet
On Mon, 17 Dec 2012 16:11:22 +0100 Marcos Lois Bermúdez wrote: > For my understand if i call for example: > > request_threaded_irq(irqmum, NULL, irq_handle, IRQF_TRIGGER_FALLING, > DEVICE_NAME, priv); > > This seem to make a old Hard IRQ handler, and inside of this handler > sleep APIs can't

Question about using new request_threaded_irq

2012-12-17 Thread Marcos Lois Bermúdez
Hi, I'm downloaded kernel sources 3.2.27, and now I'm writing a device driver for a SPI device, i make some kernel drivers in the past, so now I'm surfing the source tree to see the new mode to make things. My driver need handle hardware interrupts, in the past i use request_irq, but now the