[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230428102015.810686-1-tomas.mudrunka@gmail.com>
Date: Fri, 28 Apr 2023 12:20:15 +0200
From: Tomas Mudrunka <tomas.mudrunka@...il.com>
To: jeff@...undy.com
Cc: dmitry.torokhov@...il.com, linux-input@...r.kernel.org,
linux-kernel@...r.kernel.org, tomas.mudrunka@...il.com
Subject: [PATCH v4] Fix freeze in lm8333 i2c keyboard driver
LM8333 uses gpio interrupt line which is triggered by falling edge.
When button is pressed before driver is loaded,
driver will miss the edge and never respond again.
To fix this we run the interrupt handler after registering IRQ
to clear the interrupt via i2c command.
Signed-off-by: Tomas Mudrunka <tomas.mudrunka@...il.com>
---
drivers/input/keyboard/lm8333.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/input/keyboard/lm8333.c b/drivers/input/keyboard/lm8333.c
index 7457c3220..9a810ca00 100644
--- a/drivers/input/keyboard/lm8333.c
+++ b/drivers/input/keyboard/lm8333.c
@@ -184,6 +184,8 @@ static int lm8333_probe(struct i2c_client *client)
if (err)
goto free_mem;
+ lm8333_irq_thread(client->irq, lm8333);
+
err = input_register_device(input);
if (err)
goto free_irq;
--
2.40.0
Powered by blists - more mailing lists