Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 01ed0a3b authored by Xiaozhe Shi's avatar Xiaozhe Shi
Browse files

power: qpnp-fg: fix full soc esr workaround constant



In the previous change:

power: qpnp-fg: Support configuring battery soc via charge_full property
408a908b

a work around was introduced to set the fuel gauge system battery SOC to
0x7FDF3B (50%) whenever full was reached. This is incorrect and can cause
SOC inaccuracies at near end of charge.

The correct value should be 0xFFF971 (99.9%). Fix this in the fuel gauge
driver.

Change-Id: I55c3348a3cb118bd5868602829f9924ae1be2f13
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent 6cbc0709
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -885,8 +885,7 @@ close_time:
#define COUNTER_PULSE_OFFSET	0
#define SOC_FULL_OFFSET		3
#define BATTERY_SOC_OFFSET	1
#define ESR_PULSE_RECONFIG_SOC	0x7FDF3B

#define ESR_PULSE_RECONFIG_SOC	0xFFF971
static int fg_configure_soc(struct fg_chip *chip)
{
	u32 batt_soc;