Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e73ed318 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "power: qpnp-charger: if OTG is on and DC_IN removed resume charging"

parents c57332e4 2e54765a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1907,7 +1907,8 @@ qpnp_chg_dc_dcin_valid_irq_handler(int irq, void *_chip)
		chip->dc_present = dc_present;
		if (qpnp_chg_is_otg_en_set(chip))
			qpnp_chg_force_run_on_batt(chip, !dc_present ? 1 : 0);
		if (!dc_present && !qpnp_chg_is_usb_chg_plugged_in(chip)) {
		if (!dc_present && (!qpnp_chg_is_usb_chg_plugged_in(chip) ||
					qpnp_chg_is_otg_en_set(chip))) {
			chip->delta_vddmax_mv = 0;
			qpnp_chg_set_appropriate_vddmax(chip);
			chip->chg_done = false;