projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64fcf3b
)
gpio: tegra: remove gpio_to_irq() from hw irq handlers
author
Grygorii Strashko
<grygorii.strashko@ti.com>
Sat, 8 Jul 2017 22:44:11 +0000
(17:44 -0500)
committer
Linus Walleij
<linus.walleij@linaro.org>
Mon, 14 Aug 2017 13:01:12 +0000
(15:01 +0200)
gpio_to_irq() API expected to be used by GPIO consumers and
not drivers and there are no guarantee that its gpiolib implementation
is irq safe.
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-tegra.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-tegra.c
b/drivers/gpio/gpio-tegra.c
index 506c6a67c5fcb951154faad9c4b73cb7b8c45ac3..1e72c52fbf3563bc68be8e7272a63ebd04b03b58 100644
(file)
--- a/
drivers/gpio/gpio-tegra.c
+++ b/
drivers/gpio/gpio-tegra.c
@@
-389,7
+389,8
@@
static void tegra_gpio_irq_handler(struct irq_desc *desc)
chained_irq_exit(chip, desc);
}
- generic_handle_irq(gpio_to_irq(gpio + pin));
+ generic_handle_irq(irq_find_mapping(tgi->irq_domain,
+ gpio + pin));
}
}