[PATCH v3 2/2] gpio/omap: auto request GPIO as input if used as IRQ via DT

2013-06-26 Thread Javier Martinez Canillas
When an OMAP GPIO is used as an IRQ line, a call to gpio_request() has to be made to initialize the OMAP GPIO bank before a driver request the IRQ. Otherwise the call to request_irq() fails. Drives should not be aware of this neither care wether an IRQ line is a GPIO or not. They should just reque

Re: [PATCH v3 2/2] gpio/omap: auto request GPIO as input if used as IRQ via DT

2013-06-28 Thread Grant Likely
On Wed, Jun 26, 2013 at 8:50 PM, Javier Martinez Canillas wrote: > When an OMAP GPIO is used as an IRQ line, a call to gpio_request() > has to be made to initialize the OMAP GPIO bank before a driver > request the IRQ. Otherwise the call to request_irq() fails. > > Drives should not be aware of th

Re: [PATCH v3 2/2] gpio/omap: auto request GPIO as input if used as IRQ via DT

2013-06-28 Thread Enric Balletbo Serra
2013/6/28 Grant Likely : > On Wed, Jun 26, 2013 at 8:50 PM, Javier Martinez Canillas > wrote: >> When an OMAP GPIO is used as an IRQ line, a call to gpio_request() >> has to be made to initialize the OMAP GPIO bank before a driver >> request the IRQ. Otherwise the call to request_irq() fails. >> >