From: Hans de Goede Date: Sun, 31 Jul 2022 10:02:28 +0000 (+0200) Subject: power: supply: bq25890: Disable PUMPX_EN on errors X-Git-Tag: v6.1-rc5~274^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=04f7c7df96de7a2e9a72e53e8082754b13495813;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Sebastian Reichel --- diff --git a/drivers/power/supply/bq25890_charger.c b/drivers/power/supply/bq25890_charger.c index 852a6fe..056260b 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"); }