Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1683665
| From | Grygorii Strashko <grygorii.strashko@ti.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [RFC/RFT PATCH 1/3] gpio: tegra: remove gpio_to_irq() from hw irq handlers |
| Date | 2017-07-09 00:50 +0200 |
| Message-ID | <u16I2-840-9@gated-at.bofh.it> (permalink) |
| References | <u16I2-840-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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> --- drivers/gpio/gpio-tegra.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c index 88529d3..31b9a86 100644 --- 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)); } } -- 2.10.1
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[RFC/RFT PATCH 1/3] gpio: tegra: remove gpio_to_irq() from hw irq handlers Grygorii Strashko <grygorii.strashko@ti.com> - 2017-07-09 00:50 +0200
csiph-web