Skip to content
Commit e632cc99 authored by Ren Chen's avatar Ren Chen Committed by Anas Nashif
Browse files

usb: it82xx2: lock irq for handling suspended flag



The suspended flag is checked during SOF and RESUME interrupts, and it
is modified within a delayable work item. To prevent race conditions,
this update ensures that interrupts are disabled (locking IRQs) before
modifying the suspended flag. Additionally, the RESUME interrupt is
enabled only when the USB is suspended.

Signed-off-by: default avatarRen Chen <Ren.Chen@ite.com.tw>
parent 1fe90453
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment