[PATCH v2 3/3] Input: omap-keypad: Set irq to level instead of edge

From: Illia Smyrnov
Date: Fri Jul 26 2013 - 13:09:24 EST

From: Axel Haslam <axelhaslam@xxxxxx>

Set mpu irq to level instead of edge, since if mpu is in low power
an edge detection may be lost if the event is a wkup event.

Signed-off-by: Axel Haslam <axelhaslam@xxxxxx>
Signed-off-by: Illia Smyrnov <illia.smyrnov@xxxxxx>
Based on top of v3.11-rc2

Depends on:
Input: omap-keypad: Convert to threaded IRQ

drivers/input/keyboard/omap4-keypad.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/input/keyboard/omap4-keypad.c b/drivers/input/keyboard/omap4-keypad.c
index e8bdc76..7adb53e 100644
--- a/drivers/input/keyboard/omap4-keypad.c
+++ b/drivers/input/keyboard/omap4-keypad.c
@@ -374,9 +374,13 @@ static int omap4_keypad_probe(struct platform_device *pdev)
goto err_free_keymap;

+ /*
+ * Set irq level detection for mpu. Edge event are missed in gic
+ * if the mpu is in low power and keypad event is a wakeup
+ */
error = request_threaded_irq(keypad_data->irq, omap4_keypad_irq_handler,
"omap4-keypad", keypad_data);
if (error) {
dev_err(&pdev->dev, "failed to register interrupt\n");

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/