Re: [PATCH v2 1/2] gpio: davinci: don't create irq_domain in case of unbanked irqs

2013-12-23 Thread Grygorii Strashko
On 12/22/2013 05:52 PM, Sekhar Nori wrote: On Wednesday 18 December 2013 03:37 PM, Grygorii Strashko wrote: The system may crash if: - there are more then 1 bank s/then/than - unbanked irqs are enabled - someone will call gpio_to_irq() for GPIO from bank2 or above Hence, fix it by not

Re: [PATCH v2 1/2] gpio: davinci: don't create irq_domain in case of unbanked irqs

2013-12-23 Thread Grygorii Strashko
On 12/22/2013 05:52 PM, Sekhar Nori wrote: On Wednesday 18 December 2013 03:37 PM, Grygorii Strashko wrote: The system may crash if: - there are more then 1 bank s/then/than - unbanked irqs are enabled - someone will call gpio_to_irq() for GPIO from bank2 or above Hence, fix it by not

Re: [PATCH v2 1/2] gpio: davinci: don't create irq_domain in case of unbanked irqs

2013-12-22 Thread Sekhar Nori
On Wednesday 18 December 2013 03:37 PM, Grygorii Strashko wrote: > The system may crash if: > - there are more then 1 bank s/then/than > - unbanked irqs are enabled > - someone will call gpio_to_irq() for GPIO from bank2 or above > > Hence, fix it by not creating irq_domain if unbanked irqs are

Re: [PATCH v2 1/2] gpio: davinci: don't create irq_domain in case of unbanked irqs

2013-12-22 Thread Sekhar Nori
On Wednesday 18 December 2013 03:37 PM, Grygorii Strashko wrote: The system may crash if: - there are more then 1 bank s/then/than - unbanked irqs are enabled - someone will call gpio_to_irq() for GPIO from bank2 or above Hence, fix it by not creating irq_domain if unbanked irqs are

Re: [PATCH v2 1/2] gpio: davinci: don't create irq_domain in case of unbanked irqs

2013-12-21 Thread Prabhakar Lad
On Wed, Dec 18, 2013 at 3:37 PM, Grygorii Strashko wrote: > The system may crash if: > - there are more then 1 bank > - unbanked irqs are enabled > - someone will call gpio_to_irq() for GPIO from bank2 or above > > Hence, fix it by not creating irq_domain if unbanked irqs are enabled > and

Re: [PATCH v2 1/2] gpio: davinci: don't create irq_domain in case of unbanked irqs

2013-12-21 Thread Prabhakar Lad
On Wed, Dec 18, 2013 at 3:37 PM, Grygorii Strashko grygorii.stras...@ti.com wrote: The system may crash if: - there are more then 1 bank - unbanked irqs are enabled - someone will call gpio_to_irq() for GPIO from bank2 or above Hence, fix it by not creating irq_domain if unbanked irqs are

[PATCH v2 1/2] gpio: davinci: don't create irq_domain in case of unbanked irqs

2013-12-18 Thread Grygorii Strashko
The system may crash if: - there are more then 1 bank - unbanked irqs are enabled - someone will call gpio_to_irq() for GPIO from bank2 or above Hence, fix it by not creating irq_domain if unbanked irqs are enabled and correct gpio_to_irq_banked() to handle this properly. Cc: Linus Walleij Cc:

[PATCH v2 1/2] gpio: davinci: don't create irq_domain in case of unbanked irqs

2013-12-18 Thread Grygorii Strashko
The system may crash if: - there are more then 1 bank - unbanked irqs are enabled - someone will call gpio_to_irq() for GPIO from bank2 or above Hence, fix it by not creating irq_domain if unbanked irqs are enabled and correct gpio_to_irq_banked() to handle this properly. Cc: Linus Walleij