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

Commit 2823fe3f authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar Committed by Harry Yang
Browse files

smb-lib: revert the boost back workaround for dc path



It is expected to get 3 switcher-power-ok interrupts in a span of 1
second for Wipower. This causes the boost back workaround to suspend
dc path.

The boost back problem was never seen on Wipower. Revert the boost
back workaround for Wipower until a proper fix is in place.

Change-Id: I81b4a3184a709a5328b04c389b0e5277d65a675d
Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent 87e9c9a2
Loading
Loading
Loading
Loading
+3 −8
Original line number Diff line number Diff line
@@ -2452,12 +2452,9 @@ irqreturn_t smblib_handle_usb_plugin(int irq, void *data)
					rc);
		}
	} else {
		if (chg->wa_flags & BOOST_BACK_WA) {
		if (chg->wa_flags & BOOST_BACK_WA)
			vote(chg->usb_suspend_votable,
						BOOST_BACK_VOTER, false, 0);
			vote(chg->dc_suspend_votable,
						BOOST_BACK_VOTER, false, 0);
		}

		if (chg->dpdm_reg && regulator_is_enabled(chg->dpdm_reg)) {
			smblib_dbg(chg, PR_MISC, "disabling DPDM regulator\n");
@@ -2941,14 +2938,12 @@ irqreturn_t smblib_handle_switcher_power_ok(int irq, void *data)
				get_effective_result(chg->usb_suspend_votable))
		return IRQ_HANDLED;

	if ((stat & USE_DCIN_BIT) &&
				get_effective_result(chg->dc_suspend_votable))
	if (stat & USE_DCIN_BIT)
		return IRQ_HANDLED;

	if (is_storming(&irq_data->storm_data)) {
		smblib_dbg(chg, PR_MISC, "reverse boost detected; suspending input\n");
		smblib_err(chg, "Reverse boost detected: suspending input\n");
		vote(chg->usb_suspend_votable, BOOST_BACK_VOTER, true, 0);
		vote(chg->dc_suspend_votable, BOOST_BACK_VOTER, true, 0);
	}

	return IRQ_HANDLED;