Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 71de40a1 authored by Fenglin Wu's avatar Fenglin Wu
Browse files

power: supply: smb5-lib: use spinlock to protect pr_lock_in_progress



API smblib_set_prop_typec_power_role() would be called from a hrtimer
callback which is in an interrupt context, it's not correct to use
cancel_delayed_work_sync() function inside. Change to use the
non-sleep version cancel_delayed_work() and use a spinlock to protect
the pr_lock_in_progress flag.

Change-Id: I0a2e6e63179250579d8b826eaa2c7192399e17e6
Signed-off-by: default avatarFenglin Wu <fenglinw@codeaurora.org>
parent eb85c6e5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment