Skip to content
Commit 336fff47 authored by Siddartha Mohanadoss's avatar Siddartha Mohanadoss
Browse files

thermal: qpnp-adc-tm: Fix aborting suspend



When a low hysteresis for thresholds are set there is a
possibility that low and high thresholds are crossed at
around the same time before the client is notified. Under
such condition there could be a low and high interrupt
received before processing the request and notifying the
client. Check the return value for queued item for
notifying the client and reduce the count used to prevent
suspend if the item is already available in the global queue.

Change-Id: I4bddf6742a0686df57b6c4ce0d964579de01b027
Signed-off-by: default avatarSiddartha Mohanadoss <smohanad@codeaurora.org>
parent 21a1b0f4
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