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

Commit 1677dc8e 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: fix power stage work around"

parents 5b93afa2 cbb6f3ae
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2162,6 +2162,8 @@ qpnp_batt_external_power_changed(struct power_supply *psy)
		if (chip->prev_usb_max_ma == ret.intval)
			goto skip_set_iusb_max;

		chip->prev_usb_max_ma = ret.intval;

		if (ret.intval <= 2 && !chip->use_default_batt_values &&
						get_prop_batt_present(chip)) {
			qpnp_chg_usb_suspend_enable(chip, 1);
@@ -2190,7 +2192,6 @@ qpnp_batt_external_power_changed(struct power_supply *psy)
				schedule_work(&chip->reduce_power_stage_work);
			}
		}
		chip->prev_usb_max_ma = ret.intval;
	}

skip_set_iusb_max: