Re: [PATCH 2/2] leds: trigger: gpio: make ledtrig-gpio useable with GPIO drivers requiring threaded irqs

2014-09-12 Thread Bryan Wu
On Fri, Sep 12, 2014 at 12:09 AM, Lothar Waßmann wrote: > Hi, > > Bryan Wu wrote: >> On Tue, Sep 9, 2014 at 12:40 AM, Lothar Waßmann >> wrote: >> > When trying to use the LED GPIO trigger with e.g. the PCA953x GPIO >> > driver, request_irq() fails with -EINVAL, because the GPIO driver >> >

Re: [PATCH 2/2] leds: trigger: gpio: make ledtrig-gpio useable with GPIO drivers requiring threaded irqs

2014-09-12 Thread Lothar Waßmann
Hi, Bryan Wu wrote: > On Tue, Sep 9, 2014 at 12:40 AM, Lothar Waßmann > wrote: > > When trying to use the LED GPIO trigger with e.g. the PCA953x GPIO > > driver, request_irq() fails with -EINVAL, because the GPIO driver > > requires a nested interrupt handler. > > > > Use

Re: [PATCH 2/2] leds: trigger: gpio: make ledtrig-gpio useable with GPIO drivers requiring threaded irqs

2014-09-12 Thread Lothar Waßmann
Hi, Bryan Wu wrote: On Tue, Sep 9, 2014 at 12:40 AM, Lothar Waßmann l...@karo-electronics.de wrote: When trying to use the LED GPIO trigger with e.g. the PCA953x GPIO driver, request_irq() fails with -EINVAL, because the GPIO driver requires a nested interrupt handler. Use

Re: [PATCH 2/2] leds: trigger: gpio: make ledtrig-gpio useable with GPIO drivers requiring threaded irqs

2014-09-12 Thread Bryan Wu
On Fri, Sep 12, 2014 at 12:09 AM, Lothar Waßmann l...@karo-electronics.de wrote: Hi, Bryan Wu wrote: On Tue, Sep 9, 2014 at 12:40 AM, Lothar Waßmann l...@karo-electronics.de wrote: When trying to use the LED GPIO trigger with e.g. the PCA953x GPIO driver, request_irq() fails with

Re: [PATCH 2/2] leds: trigger: gpio: make ledtrig-gpio useable with GPIO drivers requiring threaded irqs

2014-09-11 Thread Bryan Wu
On Tue, Sep 9, 2014 at 12:40 AM, Lothar Waßmann wrote: > When trying to use the LED GPIO trigger with e.g. the PCA953x GPIO > driver, request_irq() fails with -EINVAL, because the GPIO driver > requires a nested interrupt handler. > > Use request_any_context_irq() to be able to use any GPIO

Re: [PATCH 2/2] leds: trigger: gpio: make ledtrig-gpio useable with GPIO drivers requiring threaded irqs

2014-09-11 Thread Bryan Wu
On Tue, Sep 9, 2014 at 12:40 AM, Lothar Waßmann l...@karo-electronics.de wrote: When trying to use the LED GPIO trigger with e.g. the PCA953x GPIO driver, request_irq() fails with -EINVAL, because the GPIO driver requires a nested interrupt handler. Use request_any_context_irq() to be able

[PATCH 2/2] leds: trigger: gpio: make ledtrig-gpio useable with GPIO drivers requiring threaded irqs

2014-09-09 Thread Lothar Waßmann
When trying to use the LED GPIO trigger with e.g. the PCA953x GPIO driver, request_irq() fails with -EINVAL, because the GPIO driver requires a nested interrupt handler. Use request_any_context_irq() to be able to use any GPIO driver as LED trigger. Signed-off-by: Lothar Waßmann ---

[PATCH 2/2] leds: trigger: gpio: make ledtrig-gpio useable with GPIO drivers requiring threaded irqs

2014-09-09 Thread Lothar Waßmann
When trying to use the LED GPIO trigger with e.g. the PCA953x GPIO driver, request_irq() fails with -EINVAL, because the GPIO driver requires a nested interrupt handler. Use request_any_context_irq() to be able to use any GPIO driver as LED trigger. Signed-off-by: Lothar Waßmann