msm: limits: lmh_lite: Avoid deadlock while clearing work event
There is a possibility for deadlock situation when the
sensor reset API has acquired the write lock and tries to
clear the work event, which is already waiting on the
same lock.
In the reset API, update the polling status within the
critical section and try to clear the work event outside
of the critical section to avoid this deadlock.
Change-Id: I993381bd50aa3d0df1aa2c1d28d3f02683b2a3e1
Signed-off-by:
Ram Chandrasekar <rkumbako@codeaurora.org>
Loading
Please register or sign in to comment