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

Commit 2956f9d5 authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar
Browse files

msm: krait-regulator: do not force auto mode at probe time



Auto mode should be enabled only when the PMIC is operating in single
phase. The current driver enables it at probe time - likely when there
could be multiple phases on. Do not set to Auto mode at probe time.

CRs-Fixed: 667725
Change-Id: I0213e9abb156568a0dde8e5d2c30564160027ab6
Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent c82fe615
Loading
Loading
Loading
Loading
+0 −8
Original line number Original line Diff line number Diff line
@@ -1846,14 +1846,6 @@ static int krait_pdn_probe(struct platform_device *pdev)


	/* global initializtion */
	/* global initializtion */
	glb_init(pvreg->apcs_gcc_base);
	glb_init(pvreg->apcs_gcc_base);
	/* auto mode initialization */
	if (pvreg->force_auto_mode) {
		rc = msm_spm_enable_fts_lpm(PMIC_FTS_MODE_AUTO);
		if (rc) {
			dev_err(dev, "failed to force AUTO, rc=%d\n", rc);
			return rc;
		}
	}


	rc = of_platform_populate(node, NULL, NULL, dev);
	rc = of_platform_populate(node, NULL, NULL, dev);
	if (rc) {
	if (rc) {