summaryrefslogtreecommitdiff
path: root/kernel/locking/mutex-debug.c
diff options
context:
space:
mode:
authorAbhijeet Dharmapurikar <adharmap@codeaurora.org>2017-07-06 18:45:32 -0700
committerAbhijeet Dharmapurikar <adharmap@codeaurora.org>2017-07-31 19:26:29 -0700
commit18cb81a94f4f7814d125213c87b29c84c21de8ff (patch)
tree65bfe1c15abd0c5e6b253fdf9843991be03aac69 /kernel/locking/mutex-debug.c
parent7b5b0b59142c2efd4f00fcf402333bd18b44d692 (diff)
qpnp-fg-gen3: qnovo ESR/IADC workarounds
When FG IADC measurement period coincides with qnovo discharge pulses it reads incorrect IADC values. That causes issues with SOC accuracy and capacity learning amongst others. The fix to IADC inaccuracy is to set a bit in the FG peripheral while Qnovo is active. A side effect of IADC inaccuracy fix is that the ESR measurement goes haywire. To overcome that, disable ESR when Qnovo is active and force an esr measurement when its between pulses. Realize this by disabling ESR and enabling the bit when Qnovo becomes active. The qnovo driver will set CHARGE_QNOVO_ENABLE property on the bms psy when its active. Also provide code to force an ESR measurement via a write to RESISTANCE property in bms psy. Change-Id: I7160ad6288362c17d28d67b38ec09332d9a6cbd2 Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Diffstat (limited to 'kernel/locking/mutex-debug.c')
0 files changed, 0 insertions, 0 deletions