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

Commit 0498b493 authored by David Keitel's avatar David Keitel Committed by Gerrit - the friendly Code Review server
Browse files

power: qpnp-charger: enable arb workaround for DC_IN



Accidental reverse boost (ARB) can also cause charger
removal detection issues on DC_IN.

Fix this by also executing the ARB workaround if a
dc charger is connected.

CRs-Fixed: 589210
Change-Id: I4e6d370c31e6184597b609830ad58826b0326bd7
Signed-off-by: default avatarDavid Keitel <dkeitel@codeaurora.org>
parent be0ba3f8
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1200,7 +1200,9 @@ qpnp_chg_usb_chg_gone_irq_handler(int irq, void *_chip)
		pr_err("failed to read usb_chgpth_sts rc=%d\n", rc);

	pr_debug("chg_gone triggered\n");
	if (qpnp_chg_is_usb_chg_plugged_in(chip) && (usb_sts & CHG_GONE_IRQ)) {
	if ((qpnp_chg_is_usb_chg_plugged_in(chip)
			|| qpnp_chg_is_dc_chg_plugged_in(chip))
			&& (usb_sts & CHG_GONE_IRQ)) {
		qpnp_chg_charge_en(chip, 0);
		qpnp_chg_force_run_on_batt(chip, 1);
		schedule_delayed_work(&chip->arb_stop_work,