diff options
| author | Dmitry Osipenko <[email protected]> | 2018-07-17 16:10:38 +0000 |
|---|---|---|
| committer | Linus Walleij <[email protected]> | 2018-07-29 20:38:35 +0000 |
| commit | f78709a5d4114edc21a5d86586ed5e56e284f2bd (patch) | |
| tree | 6e9b948cffc07f5ebf33498c3238ef60a94d9640 /drivers/gpio/gpio-ml-ioh.c | |
| parent | gpio: mxc: add power management support (diff) | |
| download | kernel-f78709a5d4114edc21a5d86586ed5e56e284f2bd.tar.gz kernel-f78709a5d4114edc21a5d86586ed5e56e284f2bd.zip | |
gpio: tegra: Fix tegra_gpio_irq_set_type()
Commit 36b312792b97 ("gpiolib: Respect error code of ->get_direction()")
broke tegra_gpio_irq_set_type() because requesting of GPIO direction must
be done after enabling GPIO function for a pin.
This patch fixes drivers probe failure like this:
gpio gpiochip0: (tegra-gpio): gpiochip_lock_as_irq: cannot get GPIO direction
tegra-gpio 6000d000.gpio: unable to lock Tegra GPIO 144 as IRQ
Fixes: 36b312792b97 ("gpiolib: Respect error code of ->get_direction()")
Signed-off-by: Dmitry Osipenko <[email protected]>
Acked-by: Jon Hunter <[email protected]>
Tested-by: Jon Hunter <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'drivers/gpio/gpio-ml-ioh.c')
0 files changed, 0 insertions, 0 deletions
