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

Commit 054f074f authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar
Browse files

power: qpnp-smbcharger: unsuspend dc path during init



The dc path could be suspended while exiting the bootloader. Enable it
again at initialization.

CRs-Fixed: 883886
Change-Id: If25c0d8e4ed01d0c7637f1b06643a23cec330af4
Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent 77813844
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -5975,6 +5975,12 @@ static int smbchg_hw_init(struct smbchg_chip *chip)
			return rc;
		}
	}
	/* unsuspend dc path, it could be suspended by the bootloader */
	rc = smbchg_dc_suspend(chip, 0);
	if (rc < 0) {
		dev_err(chip->dev, "Couldn't unspended dc path= %d\n", rc);
		return rc;
	}

	if (chip->force_aicl_rerun)
		rc = smbchg_aicl_config(chip);