提交 20f02d66 编写于 作者: V Valentin Rothberg 提交者: Dmitry Torokhov

Input: tc3589x-keypad - set IRQF_ONESHOT flag to ensure IRQ request

Since commit 1c6c6952 ("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: NValentin Rothberg <Valentin.Rothberg@lip6.fr>
Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
上级 93050db2
...@@ -411,9 +411,9 @@ static int tc3589x_keypad_probe(struct platform_device *pdev) ...@@ -411,9 +411,9 @@ static int tc3589x_keypad_probe(struct platform_device *pdev)
input_set_drvdata(input, keypad); input_set_drvdata(input, keypad);
error = request_threaded_irq(irq, NULL, error = request_threaded_irq(irq, NULL, tc3589x_keypad_irq,
tc3589x_keypad_irq, plat->irqtype, plat->irqtype | IRQF_ONESHOT,
"tc3589x-keypad", keypad); "tc3589x-keypad", keypad);
if (error < 0) { if (error < 0) {
dev_err(&pdev->dev, dev_err(&pdev->dev,
"Could not allocate irq %d,error %d\n", "Could not allocate irq %d,error %d\n",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册