power: supply: bq25890: Disable PUMPX_EN on errors
authorHans de Goede <hdegoede@redhat.com>
Sun, 31 Jul 2022 10:02:28 +0000 (12:02 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sun, 11 Sep 2022 12:35:21 +0000 (14:35 +0200)
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>
drivers/power/supply/bq25890_charger.c

index 852a6fe..056260b 100644 (file)
@@ -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");
 }