Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gpio: tegra: Ensure pinctrl input-enable is set for interrupts
If the default pin configuration for a Tegra GPIO does not have the input-enable bit set, then when using a GPIO as an interrupt, external events will not be seen. Fix this by calling tegra_gpio_direction_input() when requesting the IRQ resources because this function will in turn call pinctrl_gpio_direction_input() to set the input-enable bit for the pin. Note that given the tegra_gpio_direction_input() also sets the GPIO OE (output-enable) register, we no longer need to set this register in tegra_gpio_irq_set_type(). Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
- Loading branch information