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

Commit a96aa2ce authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "power: smb5: Remove FCC vote for wls pl charging"

parents 9b483b27 62839c2f
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -6128,8 +6128,9 @@ irqreturn_t dc_plugin_irq_handler(int irq, void *data)

		/*
		 * Remove USB's CP ILIM vote - inapplicable for wireless
		 * parallel charging.
		 * parallel charging. Also undo FCC STEPPER's 1.5 A vote.
		 */
		vote(chg->fcc_votable, FCC_STEPPER_VOTER, false, 0);
		if (chg->cp_ilim_votable)
			vote(chg->cp_ilim_votable, ICL_CHANGE_VOTER, false, 0);

@@ -6182,6 +6183,10 @@ irqreturn_t dc_plugin_irq_handler(int irq, void *data)
		vote(chg->dc_suspend_votable, CHG_TERMINATION_VOTER, false, 0);
		vote(chg->fcc_main_votable, WLS_PL_CHARGING_VOTER, false, 0);

		/* Force 1500mA FCC on WLS removal if fcc stepper is enabled */
		if (chg->fcc_stepper_enable)
			vote(chg->fcc_votable, FCC_STEPPER_VOTER,
							true, 1500000);
		chg->last_wls_vout = 0;
	}