Re: [RFC PATCH 0/3] If an IRQ is a GPIO, request and configure it

2011-08-05 Thread Russell King - ARM Linux
On Fri, Aug 05, 2011 at 12:33:31PM -0700, Stephen Warren wrote: > Russell King - ARM Linux wrote at Friday, August 05, 2011 1:15 PM: > > On Fri, Aug 05, 2011 at 08:43:20AM -0700, Stephen Warren wrote: > > > Russell King - ARM Linux wrote at Friday, August 05, 2011 3:40 AM: > > > > On Thu, Aug 04, 2

Re: [RFC PATCH 0/3] If an IRQ is a GPIO, request and configure it

2011-08-05 Thread Linus Walleij
On Fri, Aug 5, 2011 at 12:30 PM, Ben Dooks wrote: > On Fri, Aug 05, 2011 at 10:40:17AM +0100, Russell King - ARM Linux wrote: >> Trying to go from IRQ to GPIO is not a good idea - most of the >> IRQ <-> GPIO macros we have today are just plain broken.  Many of them >> just add or subtract a consta

RE: [RFC PATCH 0/3] If an IRQ is a GPIO, request and configure it

2011-08-05 Thread Stephen Warren
Russell King - ARM Linux wrote at Friday, August 05, 2011 1:15 PM: > On Fri, Aug 05, 2011 at 08:43:20AM -0700, Stephen Warren wrote: > > Russell King - ARM Linux wrote at Friday, August 05, 2011 3:40 AM: > > > On Thu, Aug 04, 2011 at 05:00:17PM -0600, Stephen Warren wrote: > > > > In http://www.spi

Re: [RFC PATCH 0/3] If an IRQ is a GPIO, request and configure it

2011-08-05 Thread Russell King - ARM Linux
On Fri, Aug 05, 2011 at 08:43:20AM -0700, Stephen Warren wrote: > Russell King - ARM Linux wrote at Friday, August 05, 2011 3:40 AM: > > On Thu, Aug 04, 2011 at 05:00:17PM -0600, Stephen Warren wrote: > > > In http://www.spinics.net/lists/linux-tegra/msg01731.html, Mark Brown > > > pointed out that

RE: [RFC PATCH 0/3] If an IRQ is a GPIO, request and configure it

2011-08-05 Thread Stephen Warren
Russell King - ARM Linux wrote at Friday, August 05, 2011 3:40 AM: > On Thu, Aug 04, 2011 at 05:00:17PM -0600, Stephen Warren wrote: > > In http://www.spinics.net/lists/linux-tegra/msg01731.html, Mark Brown > > pointed out that it was a little silly forcing every board or driver > > to gpio_request

Re: [RFC PATCH 0/3] If an IRQ is a GPIO, request and configure it

2011-08-05 Thread Ben Dooks
On Fri, Aug 05, 2011 at 10:40:17AM +0100, Russell King - ARM Linux wrote: > On Thu, Aug 04, 2011 at 05:00:17PM -0600, Stephen Warren wrote: > > In http://www.spinics.net/lists/linux-tegra/msg01731.html, Mark Brown > > pointed out that it was a little silly forcing every board or driver > > to gpio_

Re: [RFC PATCH 0/3] If an IRQ is a GPIO, request and configure it

2011-08-05 Thread Russell King - ARM Linux
On Thu, Aug 04, 2011 at 05:00:17PM -0600, Stephen Warren wrote: > In http://www.spinics.net/lists/linux-tegra/msg01731.html, Mark Brown > pointed out that it was a little silly forcing every board or driver > to gpio_request() a GPIO that is later converted to an IRQ, and passed > to request_irq. T

Re: [RFC PATCH 0/3] If an IRQ is a GPIO, request and configure it

2011-08-05 Thread Ben Dooks
On Thu, Aug 04, 2011 at 05:00:17PM -0600, Stephen Warren wrote: > In http://www.spinics.net/lists/linux-tegra/msg01731.html, Mark Brown > pointed out that it was a little silly forcing every board or driver > to gpio_request() a GPIO that is later converted to an IRQ, and passed > to request_irq. T