summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSubbaraman Narayanamurthy <subbaram@codeaurora.org>2017-09-12 20:19:17 -0700
committerSubbaraman Narayanamurthy <subbaram@codeaurora.org>2017-09-15 13:57:01 -0700
commit4ce690327a6f6ef20e28f3db14be38ec70b94e2e (patch)
tree79fd6ce0c8a582b0c2c0a23581b178884f3edce8 /scripts
parentb86ba37927f07b91be6bb9ec5d643c81ef3b7c30 (diff)
power: qpnp-fg-gen3: synchronize ESR extraction control configuration
Currently, ESR extraction control is configured from two paths. First is invoked when Qnovo is enabled or disabled. Second is invoked when the pulse train is done and ESR measurement is requested. When the latter is run, there is a sleep time of 1.5 seconds that is essential for allowing FG to do ESR measurement. However in that time window, if Qnovo is disabled for some reason then ESR extraction control will be kept disabled unexpectedly. Fix this by protecting both the paths using a mutex lock as well as checking for qnovo enable status before disabling ESR extraction control after measuring ESR. Change-Id: Ib93539071724a1ce59d198074854a8a9c5fd3ab3 Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions