]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
gpio: tegra: remove gpio_to_irq() from hw irq handlers
authorGrygorii Strashko <grygorii.strashko@ti.com>
Sat, 8 Jul 2017 22:44:11 +0000 (17:44 -0500)
committerLinus 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

index 506c6a67c5fcb951154faad9c4b73cb7b8c45ac3..1e72c52fbf3563bc68be8e7272a63ebd04b03b58 100644 (file)
@@ -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));
                }
        }