Skip to content
Commit f1f7ca45 authored by Jun Lin's avatar Jun Lin Committed by Anas Nashif
Browse files

drivers: input: npcx: init semaphore before interrupt enable



A kernel panic was observed on a platform when k_sem_give() was called
in npcx_kbd_ksi_isr(). From the panic information, it appears that
the semaphore was used before it was initialized. This commit prevents
the potential issue by enabling the interrupt only after
the input_kbd_matrix_common_init() function is called
(where the semaphore is initialized).

Signed-off-by: default avatarJun Lin <CHLin56@nuvoton.com>
parent 69acc016
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment