Skip to content
Commit 7c8cb78b authored by Mulin Chao's avatar Mulin Chao Committed by Anas Nashif
Browse files

driver: i2c: npcx: reset i2c semaphore before start transaction.



This CL reset i2c event-completed semaphore before starting
transactions. Some interrupt events such as BUS_ERROR might change its
counter when i2c bus is idle. It causes that the driver cannot wait
for the event completed and return immediately.

Signed-off-by: default avatarMulin Chao <mlchao@nuvoton.com>
parent 5ccb89c3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment