diff options
author | Hans de Goede <hdegoede@redhat.com> | 2022-07-31 12:02:28 +0200 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2022-09-11 14:35:21 +0200 |
commit | 04f7c7df96de7a2e9a72e53e8082754b13495813 (patch) | |
tree | 42f277330441a7803a3017f57187e483b751c9f7 /drivers/power | |
parent | power: supply: Fix repeated word in comments (diff) | |
download | linux-04f7c7df96de7a2e9a72e53e8082754b13495813.tar.xz linux-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.c | 1 |
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"); } |