summaryrefslogtreecommitdiff
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorSubbaraman Narayanamurthy <subbaram@codeaurora.org>2016-11-01 19:31:44 -0700
committerSubbaraman Narayanamurthy <subbaram@codeaurora.org>2016-11-07 14:32:10 -0800
commite0520b6c77382bd72264be8a4993a9d70af7dd1d (patch)
treeb7fc1428ee6d6709920df3f6be70e1f215252037 /fs/jbd2/commit.c
parent416ddbdbf34fe909f3ca47f8f40185311d78a72b (diff)
qpnp-fg-gen3: support configuring ESR FCC based on charging status
Currently, fuel gauge assumes that the battery charging current is provided only by the main charger. When ESR pulse is needed, it notifies only the main charger to lower its FCC. However, with parallel charger also supplying the FCC to the battery, the main charger can end up increasing its FCC instead of lowering it. This is because of the fact that FCC of main charger is lower than the total battery charging current because of the current distribution to the parallel charger and the code sent by FG allows it to increase its FCC. Fix this by controlling ESR FCC current code to 300mA in software when the device is charging and the parallel charger is enabled. Switch back to hardware control when the device is not charging or parallel charger is disabled. Change-Id: I0e6e600f72f9ef8864f9b775df88f674de9cb52c Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions