]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: tegra: configure pins during irq_set_type
authorStephen Warren <swarren@nvidia.com>
Mon, 19 Mar 2012 16:31:58 +0000 (10:31 -0600)
committerStephen Warren <swarren@nvidia.com>
Wed, 18 Apr 2012 16:26:38 +0000 (10:26 -0600)
commit7a1d53028c7b2be81f7af9985ee4a97827201582
treeabb5aa312d0329170c599f60869126e01d9308a4
parentd03781eb086f9977a0a5796e0334e54447fb0ba7
gpio: tegra: configure pins during irq_set_type

When a Tegra GPIO is used as an IRQ, it should be enabled as a GPIO (so
the pinmux module isn't driving it as an output) and configured as a GPIO
input (so the GPIO module isn't driving it as an output). Set this up
automatically whenever an IRQ is requested, so that users of IRQs don't
need to do this.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Olof Johansson <olof@lixom.net>
drivers/gpio/gpio-tegra.c