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>
This commit is contained in:
parent
5ae6134ef3
commit
04f7c7df96
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user