Files
android_kernel_xiaomi_sm8450/drivers/gpio
Grygorii Strashko 121dcb7604 gpio: omap: rework omap_gpio_irq_startup to handle current pin state properly
The omap_gpio_irq_startup() can be called at time when:
- corresponding GPIO has been requested already and in this case
it has to be configured as input already. If not - return with -EINVAL
and do not try to re-configure it as it could be unsafe.
- corresponding GPIO is free: reconfigure GPIO as input.

In addition, call omap_enable_gpio_module directly as all needed
checks are already present inside it.

Signed-off-by: Grygorii Strashko <grygorii.strashko@linaro.org>
Tested-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2015-06-01 16:53:54 +02:00
..
2015-03-17 17:45:59 +01:00
2015-05-13 10:02:12 +02:00
2015-01-20 11:03:07 +01:00
2015-05-05 17:50:07 +02:00
2015-05-12 09:41:28 +02:00
2015-05-12 09:41:28 +02:00
2015-01-22 09:45:24 +01:00
2015-05-19 16:52:30 +02:00
2015-05-12 10:13:41 +02:00