]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
gpio: omap: rework omap_x_irq_shutdown to touch only irqs specific registers
authorGrygorii Strashko <grygorii.strashko@linaro.org>
Fri, 22 May 2015 14:35:50 +0000 (17:35 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 1 Jun 2015 14:53:46 +0000 (16:53 +0200)
commit6e96c1b5e54889cd11ce29723a5c38ba284c1d91
tree8615f2283a5fd732446b19f2a8119ba6bf934a9a
parent1562e4618ded89b07d145d6985f469fe8be04830
gpio: omap: rework omap_x_irq_shutdown to touch only irqs specific registers

The GPIO Chip and GPIO IRQ Chip functionality are essentially orthogonal,
so GPIO IRQ Chip implementation shouldn't touch GPIO specific
registers and vise versa.

Hence, rework omap_gpio_irq_shutdown and try to touch only irqs specific
registers:
- don't configure GPIO as input (it, actually, should be already configured
  as input).
- don't clear debounce configuration if GPIO is still used as GPIO.
  We need to take in to account here commit c9c55d921115
  ("gpio/omap: fix off-mode bug: clear debounce settings on free/reset").

Also remove omap_reset_gpio() function as it is not used any more.

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>
drivers/gpio/gpio-omap.c