Skip to content

Commit 31b7565

Browse files
JhanBoChao-Realtekkartben
authored andcommitted
drivers: input: rts5912: clear pending irq when setup
clear pending irq when setup. Signed-off-by: jhan bo chao <[email protected]>
1 parent 042bf2c commit 31b7565

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/input/input_realtek_rts5912_kbd.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ static int rts5912_kbd_init(const struct device *dev)
173173
/* W/C interrupt status of KSI pins */
174174
rts5912_intc_isr_clear(dev);
175175

176+
NVIC_ClearPendingIRQ(DT_INST_IRQN(0));
177+
176178
/* Interrupts are enabled in the thread function */
177179
IRQ_CONNECT(DT_INST_IRQN(0), DT_INST_IRQ(0, priority),
178180
rts5912_kbd_isr, DEVICE_DT_INST_GET(0), 0);

0 commit comments

Comments
 (0)