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:
parent
042bf2c3fa
commit
31b756562a
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue