diff options
author | Grygorii Strashko <grygorii.strashko@ti.com> | 2013-12-18 11:07:51 +0100 |
---|---|---|
committer | Sekhar Nori <nsekhar@ti.com> | 2013-12-25 19:32:12 +0100 |
commit | 6075a8b2b6c32ddcb99b85189ae41ab2903e560f (patch) | |
tree | 76b301c58257041ed0b7444965a6c5a26c5792fc /drivers/irqchip | |
parent | gpio: davinci: use chained_irq_enter/chained_irq_exit API (diff) | |
download | linux-6075a8b2b6c32ddcb99b85189ae41ab2903e560f.tar.xz linux-6075a8b2b6c32ddcb99b85189ae41ab2903e560f.zip |
gpio: davinci: don't create irq_domain in case of unbanked irqs
The system may crash if:
- there are more than 1 banks
- 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 <linus.walleij@linaro.org>
Cc: Alexandre Courbot <gnurou@gmail.com>
Cc: Sekhar Nori <nsekhar@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Diffstat (limited to 'drivers/irqchip')
0 files changed, 0 insertions, 0 deletions