drivers: input: rts5912: clear pending irq when setup

clear pending irq when setup.

Signed-off-by: jhan bo chao <jhan_bo_chao@realtek.com>
This commit is contained in:
jhan bo chao 2025-05-07 22:02:04 +08:00 committed by Benjamin Cabé
commit 31b756562a

View file

@ -173,6 +173,8 @@ static int rts5912_kbd_init(const struct device *dev)
/* W/C interrupt status of KSI pins */
rts5912_intc_isr_clear(dev);
NVIC_ClearPendingIRQ(DT_INST_IRQN(0));
/* Interrupts are enabled in the thread function */
IRQ_CONNECT(DT_INST_IRQN(0), DT_INST_IRQ(0, priority),
rts5912_kbd_isr, DEVICE_DT_INST_GET(0), 0);