[PATCH 1/2] gpio/omap: convert gpio irq domain to linear mapping

2013-03-01 Thread Jon Hunter
Currently the OMAP GPIO driver uses a legacy mapping for the GPIO IRQ domain. This is not necessary because we do not need to assign a specific interrupt number to the GPIO IRQ domain. Therefore, convert the OMAP GPIO driver to use a linear mapping instead. Please note that this also allows to sim

Re: [PATCH 1/2] gpio/omap: convert gpio irq domain to linear mapping

2013-03-01 Thread Santosh Shilimkar
On Friday 01 March 2013 10:52 PM, Jon Hunter wrote: > Currently the OMAP GPIO driver uses a legacy mapping for the GPIO IRQ > domain. This is not necessary because we do not need to assign a > specific interrupt number to the GPIO IRQ domain. Therefore, convert > the OMAP GPIO driver to use a linea

Re: [PATCH 1/2] gpio/omap: convert gpio irq domain to linear mapping

2013-03-02 Thread Felipe Balbi
On Fri, Mar 01, 2013 at 11:22:47AM -0600, Jon Hunter wrote: > Currently the OMAP GPIO driver uses a legacy mapping for the GPIO IRQ > domain. This is not necessary because we do not need to assign a > specific interrupt number to the GPIO IRQ domain. Therefore, convert > the OMAP GPIO driver to use

Re: [PATCH 1/2] gpio/omap: convert gpio irq domain to linear mapping

2013-03-03 Thread Grant Likely
On Fri, 1 Mar 2013 11:22:47 -0600, Jon Hunter wrote: > Currently the OMAP GPIO driver uses a legacy mapping for the GPIO IRQ > domain. This is not necessary because we do not need to assign a > specific interrupt number to the GPIO IRQ domain. Therefore, convert > the OMAP GPIO driver to use a lin

Re: [PATCH 1/2] gpio/omap: convert gpio irq domain to linear mapping

2013-03-04 Thread Jon Hunter
On 03/02/2013 05:48 AM, Felipe Balbi wrote: > On Fri, Mar 01, 2013 at 11:22:47AM -0600, Jon Hunter wrote: >> Currently the OMAP GPIO driver uses a legacy mapping for the GPIO IRQ >> domain. This is not necessary because we do not need to assign a >> specific interrupt number to the GPIO IRQ domain

Re: [PATCH 1/2] gpio/omap: convert gpio irq domain to linear mapping

2013-03-04 Thread Felipe Balbi
On Mon, Mar 04, 2013 at 11:06:12AM -0600, Jon Hunter wrote: > > On 03/02/2013 05:48 AM, Felipe Balbi wrote: > > On Fri, Mar 01, 2013 at 11:22:47AM -0600, Jon Hunter wrote: > >> Currently the OMAP GPIO driver uses a legacy mapping for the GPIO IRQ > >> domain. This is not necessary because we do no

Re: [PATCH 1/2] gpio/omap: convert gpio irq domain to linear mapping

2013-03-04 Thread Jon Hunter
On 03/04/2013 11:11 AM, Felipe Balbi wrote: > On Mon, Mar 04, 2013 at 11:06:12AM -0600, Jon Hunter wrote: >> >> On 03/02/2013 05:48 AM, Felipe Balbi wrote: >>> On Fri, Mar 01, 2013 at 11:22:47AM -0600, Jon Hunter wrote: Currently the OMAP GPIO driver uses a legacy mapping for the GPIO IRQ >>>

Re: [PATCH 1/2] gpio/omap: convert gpio irq domain to linear mapping

2013-03-04 Thread Felipe Balbi
Hi, On Mon, Mar 04, 2013 at 11:58:23AM -0600, Jon Hunter wrote: > >>> while (isr) { > >>> unsigned long bit = __ffs(isr); > >>> > >>> /* clear this bit */ > >>> isr &= ~bit; > >>> > >>> generic_handle_irq(irq_find_mapping(bank->domain, bit); > >>> } > >>> > >>> this way you will only itera