Skip to contentSkip to conversation

power: supply: bq25890: Disable PUMPX_EN on errors

PATCH In review Hans de Goede 2 participants 2 messages Jul 31, 2022 – Sep 12, 2022 Power supply

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/power/supply/bq25890_charger.c | 1 +
 1 file changed, 1 insertion(+)
drivers/power/supply/bq25890_charger.c +1 -0
index 852a6fec4339..056260b2cb76 100644
@@ -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");
 }
 
Signature · 1 line
2.37.1
#1 lore raw

Hi,

Quoted 5 lines · Hans de Goede

When bq25890_pump_express_work encounters an errors disable the PUMPX_EN flag, just like the work does on a successful exit.

---

Thanks, queued to power-supply's for-next branch.

-- Sebastian

Quoted 18 lines
 drivers/power/supply/bq25890_charger.c | 1 +
 1 file changed, 1 insertion(+)
drivers/power/supply/bq25890_charger.c +1 -0
index 852a6fec4339..056260b2cb76 100644
@@ -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");
 }
 
Signature · 1 line
2.37.1