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

Commit d0276f8d 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-fg-gen3: Disable ESR pulldown for debug battery id" into msm-4.9

parents 123d6cb0 401a1d31
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -3366,6 +3366,16 @@ static int fg_hw_init(struct fg_chip *chip)
		return rc;
	}

	if (is_debug_batt_id(chip)) {
		val = ESR_NO_PULL_DOWN;
		rc = fg_masked_write(chip, BATT_INFO_ESR_PULL_DN_CFG(chip),
			ESR_PULL_DOWN_MODE_MASK, val);
		if (rc < 0) {
			pr_err("Error in writing esr_pull_down, rc=%d\n", rc);
			return rc;
		}
	}

	return 0;
}