]> git.baikalelectronics.ru Git - kernel.git/commit
Input: tc3589x-keypad - set IRQF_ONESHOT flag to ensure IRQ request
authorValentin Rothberg <Valentin.Rothberg@lip6.fr>
Wed, 4 Mar 2015 23:10:45 +0000 (15:10 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 4 Mar 2015 23:17:08 +0000 (15:17 -0800)
commitb186e84eaf3bf96cab582a12743865e8defa8bd8
treeee1438b7dbad20037cdae5b132b7b62d34d2d6db
parent97a3c0df3e2f5cf7925e5d4232a107b7ae106087
Input: tc3589x-keypad - set IRQF_ONESHOT flag to ensure IRQ request

Since commit ac4ffb5fd96645b04154d9aa1c27095512b77493 ("genirq: Reject
bogus threaded irq requests") threaded IRQs without a primary handler
need to be requested with IRQF_ONESHOT, otherwise the request will fail.

Currently, plat->irqtype is only set to IRQF_TRIGGER_FALLING.  This
patch sets the ONESHOT flag directly in request_threaded_irq() to
enforce the flag without being affected by future changes to
plat->irqtype.

Generated by: scripts/coccinelle/misc/irqf_oneshot.cocci

Signed-off-by: Valentin Rothberg <Valentin.Rothberg@lip6.fr>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/tc3589x-keypad.c