]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: lock adnp IRQs when enabling them
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 19 Nov 2013 12:34:56 +0000 (13:34 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 4 Dec 2013 13:46:19 +0000 (14:46 +0100)
commitdbe386c53bb5040d2197c383b9cea9b36626b654
tree5eff4af9748e6ecfcfecba3b72f4e351e7e6d745
parent1386d2af13b0b2ba423da1adf79ceabb7ea834e9
gpio: lock adnp IRQs when enabling them

This uses the new API for tagging GPIO lines as in use by
IRQs. This enforces a few semantic checks on how the underlying
GPIO line is used.

Only compile tested on the lpc32xx.

ChangeLog v2->v3:
- Switch to using the startup()/shutdown() callbacks again.
  Still satisfy the mask/unmask semantics.
ChangeLog v1->v2:
- Use the .enable() callback from the irq_chip
- Call .unmask() from the .enable() callback to satisfy semantics.

Cc: Lars Poeschel <poeschel@lemonage.de>
Cc: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-adnp.c