aboutsummaryrefslogtreecommitdiff
path: root/lib/cpu-notifier-error-inject.c
diff options
context:
space:
mode:
authorLinus Walleij <[email protected]>2013-09-24 11:54:38 +0200
committerLinus Walleij <[email protected]>2013-10-16 09:59:54 +0200
commitd468bf9ecaabd3bf3a6134e5a369ced82b1d1ca1 (patch)
tree452eaf82c5c50a4673ccd5fccdc1407b1243d03d /lib/cpu-notifier-error-inject.c
parentd27e06ac5dcf60d5502269e1875bcb0f05f1b1c1 (diff)
gpio: add API to be strict about GPIO IRQ usage
It is currently often possible in many GPIO drivers to request a GPIO line to be used as IRQ after calling gpio_to_irq() and, as the gpiolib is not aware of this, set the same line to output and start driving it, with undesired side effects. As it is a bogus usage scenario to request a line flagged as output to used as IRQ, we introduce APIs to let gpiolib track the use of a line as IRQ, and also set this flag from the userspace ABI. The API is symmetric so that lines can also be flagged from .irq_enable() and unflagged from IRQ by .irq_disable(). The debugfs file is altered so that we see if a line is reserved for IRQ. Cc: Enric Balletbo i Serra <[email protected]> Cc: Grant Likely <[email protected]> Cc: Jean-Christophe PLAGNIOL-VILLARD <[email protected]> Cc: Santosh Shilimkar <[email protected]> Acked-by: Alexandre Courbot <[email protected]> Reviewed-by: Stephen Warren <[email protected]> Reviewed-by: Javier Martinez Canillas <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions