Skip to content

Commit 2287d85

Browse files
author
Al Stone
committed
power: supply: samsung-sdi-battery: Add missing charge restart voltages
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2071846 Tested: This is one of a series of patch sets to enable Arm SystemReady IR support in the kernel for NXP i.MX8 platforms. This set updates the power subsystem. This set has been tested via simple boot tests and the CI loop. commit 5c7d28c Author: Linus Walleij <linus.walleij@linaro.org> Date: Sun Mar 6 00:24:20 2022 +0100 power: supply: samsung-sdi-battery: Add missing charge restart voltages Two of the batteries were missing charging restart voltages, meaning they can drain if the algorithm relies on restarting charging at this voltage. Fix it up. Fixes: c8aee3f ("power: supply: Static data for Samsung batteries") Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com> (cherry picked from commit 5c7d28c) Signed-off-by: Al Stone <ahs3@redhat.com>
1 parent 6276cec commit 2287d85

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/power/supply/samsung-sdi-battery.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -824,6 +824,7 @@ static struct samsung_sdi_battery samsung_sdi_batteries[] = {
824824
.constant_charge_current_max_ua = 900000,
825825
.constant_charge_voltage_max_uv = 4200000,
826826
.charge_term_current_ua = 200000,
827+
.charge_restart_voltage_uv = 4170000,
827828
.maintenance_charge = samsung_maint_charge_table,
828829
.maintenance_charge_size = ARRAY_SIZE(samsung_maint_charge_table),
829830
.alert_low_temp_charge_current_ua = 300000,
@@ -867,6 +868,7 @@ static struct samsung_sdi_battery samsung_sdi_batteries[] = {
867868
.constant_charge_current_max_ua = 1500000,
868869
.constant_charge_voltage_max_uv = 4350000,
869870
.charge_term_current_ua = 120000,
871+
.charge_restart_voltage_uv = 4300000,
870872
.maintenance_charge = samsung_maint_charge_table,
871873
.maintenance_charge_size = ARRAY_SIZE(samsung_maint_charge_table),
872874
.alert_low_temp_charge_current_ua = 300000,

0 commit comments

Comments
 (0)