summaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2022-07-31 12:02:28 +0200
committerSebastian Reichel <sebastian.reichel@collabora.com>2022-09-11 14:35:21 +0200
commit04f7c7df96de7a2e9a72e53e8082754b13495813 (patch)
tree42f277330441a7803a3017f57187e483b751c9f7 /drivers/power
parent5ae6134ef380e4cbb50ab8d606a10b880a61c5c5 (diff)
downloadlinux-stable-04f7c7df96de7a2e9a72e53e8082754b13495813.tar.gz
linux-stable-04f7c7df96de7a2e9a72e53e8082754b13495813.tar.bz2
linux-stable-04f7c7df96de7a2e9a72e53e8082754b13495813.zip
power: supply: bq25890: Disable PUMPX_EN on errors
When bq25890_pump_express_work encounters an errors disable the PUMPX_EN flag, just like the work does on a successful exit. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/supply/bq25890_charger.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/supply/bq25890_charger.c b/drivers/power/supply/bq25890_charger.c
index 852a6fec4339..056260b2cb76 100644
--- a/drivers/power/supply/bq25890_charger.c
+++ b/drivers/power/supply/bq25890_charger.c
@@ -946,6 +946,7 @@ static void bq25890_pump_express_work(struct work_struct *data)
return;
error_print:
+ bq25890_field_write(bq, F_PUMPX_EN, 0);
dev_err(bq->dev, "Failed to request hi-voltage charging\n");
}