max1720x_battery: set REPSOC as raw report data when init done
P7 flip-side battery used VFSOC as raw data and caused recharge
conditions misalignment with base-side battery.
VFSOC only considers voltage, we should take REPSOC as raw data.
According to base-side behavior, set read REPSOC as raw data
when the init process done.
Bug: 188127557
Signed-off-by: Jenny Ho <[email protected]>
Change-Id: I59a7906b7a2a1e7fc3f558a5f2afc62d0e13a85a
diff --git a/max1720x_battery.c b/max1720x_battery.c
index 52da9d8..1ab0170 100644
--- a/max1720x_battery.c
+++ b/max1720x_battery.c
@@ -1244,6 +1244,9 @@
chip->previous_qh = current_qh;
dev_info(chip->dev, "QH value restored to %d\n",
chip->previous_qh);
+
+ /* init chip for max1720x done here, change to RepSOC */
+ chip->reg_prop_capacity_raw = MAX1720X_REPSOC;
}
static void max1720x_handle_update_nconvgcfg(struct max1720x_chip *chip,